Function is_ascii

Source
const fn is_ascii(bytes: &[u8]) -> bool
Expand description

ASCII test optimized to use the pmovmskb instruction available on x86-64 platforms.

Other platforms are not likely to benefit from this code structure, so they use SWAR techniques to test for ASCII in usize-sized chunks.