is_ascii

Function is_ascii 

Source
const fn is_ascii(bytes: &[u8]) -> bool
Available on x86-64 and target feature sse2 only.
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.