Function next_code_point

unsafe fn next_code_point<'a, I: Iterator<Item = &'a u8>>(bytes: &mut I) -> Option<u32>

Reads the next code point out of a byte iterator (assuming a UTF-8-like encoding).

Safety

bytes must produce a valid UTF-8-like (UTF-8 or WTF-8) string