Function core::str::validations::run_utf8_validation
const: unstable · source · pub(super) 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)
.