Expand description
Operations on ASCII [u8].
Re-exportsยง
use core::ascii::EscapeDefault;๐use crate::fmt;๐use crate::fmt::Write;๐use crate::intrinsics::const_eval_select;๐Experimental Not (LoongArch64 and lsx)use crate::intrinsics::const_eval_select;๐Experimental Not (LoongArch64 and lsx)use crate::ascii;๐use crate::iter;๐use crate::ops;๐use crate::iter::Filter;๐use crate::iter::FusedIterator;๐use crate::slice::Split;๐use crate::str::BytesIsNotEmpty;๐use crate::str::IsAsciiWhitespace;๐
Structsยง
- Escape
Ascii - An iterator over the escaped version of a byte slice.
- Escape
Byte ๐ - Split
Ascii Whitespace Experimental - An iterator over the non-ASCII-whitespace subslices of a byte slice, separated by any amount of ASCII whitespace.
Constantsยง
- SSE2_
CHUNK_ ๐SIZE x86-64 and sse2 - Chunk size for SSE2 vectorized ASCII checking (4x 16-byte loads).
Functionsยง
- is_
ascii ๐AArch64 and neon, or x86-64 andsse2 - Uses explicit SIMD intrinsics to prevent LLVM from auto-vectorizing with broken code (e.g., AVX-512 on x86-64 that extracts mask bits one-by-one).
- is_
ascii_ ๐sse2 x86-64 and sse2 - is_
ascii_ ๐ปsimple Experimental - ASCII test without the chunk-at-a-time optimizations.