Skip to main content

byte_of_char

Function byte_of_char 

Source
pub fn byte_of_char(text: &str, chars: usize) -> usize
Expand description

A character offset back to a byte offset, clamped into the string.