Function floor_char_boundary
pub fn floor_char_boundary(s: &str, i: usize) -> usizeExpand description
Find the largest byte index <= i that is a valid char boundary.
MSRV-compatible replacement for str::floor_char_boundary (stable in 1.91).