Function wasmtime_environ::__core::str::next_code_point
source · pub unsafe fn next_code_point<'a, I>(bytes: &mut I) -> Option<u32>where
I: Iterator<Item = &'a u8>,
🔬This is a nightly-only experimental API. (
str_internals
)Expand description
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