Function validate_utf8

Source
pub fn validate_utf8(data: &[u8]) -> Result<&str>
Expand description

Validate that bytes contain valid UTF-8 text