Function html5ever::tendril::encoding_rs::mem::is_utf16_latin1
source · pub fn is_utf16_latin1(buffer: &[u16]) -> bool
Expand description
Checks whether the buffer represents only code point less than or equal to U+00FF.
May read the entire buffer even if it isn’t all-Latin1. (I.e. the function is not guaranteed to fail fast.)