pub fn decode_unsafe<I: Iterator<Item = Result<u8>>>(
iter: &mut I,
) -> Option<Result<char>>Expand description
Read the next Unicode character out of the given Result<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.