Function core::slice::ascii::is_ascii_simple

source ·
pub const fn is_ascii_simple(bytes: &[u8]) -> bool
🔬This is a nightly-only experimental API. (str_internals)
Expand description

ASCII test without the chunk-at-a-time optimizations.

This is carefully structured to produce nice small code – it’s smaller in -O than what the “obvious” ways produces under -C opt-level=s. If you touch it, be sure to run (and update if needed) the assembly test.