Skip to main content

safe_byte_index

Function safe_byte_index 

Source
pub fn safe_byte_index(s: &str, pos: usize) -> usize
Expand description

Find the largest valid char boundary <= pos in s.