Function futf::classify
[−]
[src]
pub fn classify<'a>(buf: &'a [u8], idx: usize) -> Option<Codepoint<'a>>
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.