Function run_utf8_validation

Source
pub(super) const fn run_utf8_validation(v: &[u8]) -> Result<(), Utf8Error>
Expand description

Walks through v checking that it’s a valid UTF-8 sequence, returning Ok(()) in that case, or, if it is invalid, Err(err).