pub fn is_valid_utf8(data: &[u8]) -> bool
Checks if the given byte slice is valid UTF-8.
data
true
false