Function core::str::run_utf8_validation [] [src]

fn run_utf8_validation(v: &[u8]) -> Result<(), Utf8Error>

Walk through iter checking that it's a valid UTF-8 sequence, returning true in that case, or, if it is invalid, false with iter reset such that it is pointing at the first byte in the invalid sequence.