pub fn classify<'a>(buf: &'a [u8], idx: usize) -> Option<Codepoint<'a>>Expand description
Describes the UTF-8 codepoint containing the byte at index idx within
buf.
Returns None if idx is out of range, or if buf contains invalid UTF-8
in the vicinity of idx.