pub fn byte_of_char(text: &str, chars: usize) -> usize
A character offset back to a byte offset, clamped into the string.