Function encoding_rs::mem::is_str_latin1
source ยท pub fn is_str_latin1(buffer: &str) -> bool
Expand description
Checks whether the buffer represents only code points less than or equal to U+00FF.
Fails fast. (I.e. returns before having read the whole buffer if code points above U+00FF are discovered.