Skip to main content

utf8_bytes

Function utf8_bytes 

Source
pub fn utf8_bytes(c: char) -> impl Iterator<Item = u8>
Expand description

Helper function to convert a char to an iterator over its UTF-8 bytes without any heap allocations.