Function first_char_of_utf8_string_lossless

Source
pub fn first_char_of_utf8_string_lossless(
    bytes: &[u8],
) -> Result<(Vec<u8>, (usize, bool))>
Expand description

Return a character or invalid part of a UTF-8 string as bytes, as well as the number of input bytes consumed.