looks_utf8

Function looks_utf8 

Source
pub fn looks_utf8(buf: &[u8]) -> Option<(IdentifiedEncoding, bool)>
Expand description

Evaluates whether buf is valid UTF-8 text.