fn snap_to_char_boundary_ceil(buf: &[u8], idx: usize) -> usize
Snap idx up to the nearest UTF-8 character boundary (or buf.len()).
idx