Function encoding_rs::mem::is_utf8_latin1 [−][src]
Expand description
Checks whether the buffer is valid UTF-8 representing only code points less than or equal to U+00FF.
Fails fast. (I.e. returns before having read the whole buffer if UTF-8 invalidity or code points above U+00FF are discovered.