fedimint_core::fmt_utils

Function floor_char_boundary

Source
pub fn floor_char_boundary(s: &str, index: usize) -> usize