Function html5ever::tendril::encoding_rs::mem::is_ascii

source ·
pub fn is_ascii(buffer: &[u8]) -> bool
Expand description

Checks whether the buffer is all-ASCII.

May read the entire buffer even if it isn’t all-ASCII. (I.e. the function is not guaranteed to fail fast.)