[−][src]Function utf8_decode::decode
pub fn decode<I: Iterator<Item = u8>>(iter: &mut I) -> Option<Result<char>>
Read the next Unicode character out of the given u8 iterator.
Returns None is the input iterator directly outputs None.
Returns an InvalidData error the input iterator does not
output a valid UTF-8 sequence.
Returns an UnexpectedEof error if the input iterator
returns None before the end of an UTF-8 character.