Function core::str::validations::next_code_point_reverse
source · pub(super) unsafe fn next_code_point_reverse<'a, I>(
bytes: &mut I
) -> Option<u32>where
I: DoubleEndedIterator<Item = &'a u8>,
Expand description
Reads the last 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