Skip to main content

is_utf8

Function is_utf8 

Source
pub fn is_utf8(data: &[u8]) -> bool
Expand description

Check if the given bytes are valid UTF-8.

Uses SIMD-accelerated validation for performance.