pub(crate) fn is_boundary(bytes: &[u8], i: usize) -> boolExpand description
Returns true if and only if the given offset in the given bytes falls on a valid UTF-8 encoded codepoint boundary.
If bytes is not valid UTF-8, then the behavior of this routine is
unspecified.