pub struct SimdCharClassifier;Expand description
SIMD-accelerated character classification for JSON tokens
Implementations§
Source§impl SimdCharClassifier
impl SimdCharClassifier
Sourcepub fn classify_chunk(&self, chunk: &[u8; 64]) -> CharacterClasses
pub fn classify_chunk(&self, chunk: &[u8; 64]) -> CharacterClasses
Classify characters in a 64-byte chunk using SIMD (AVX2 optimized)
§Safety
Uses SIMD intrinsics that are safe on x86/x86_64 with AVX2 support.
The _mm256_loadu_si256 intrinsic handles unaligned loads safely.
§Panics
This function does not panic. The try_into().unwrap() calls are
guaranteed to succeed because we split a 64-byte array at index 32,
producing exactly two 32-byte slices.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimdCharClassifier
impl RefUnwindSafe for SimdCharClassifier
impl Send for SimdCharClassifier
impl Sync for SimdCharClassifier
impl Unpin for SimdCharClassifier
impl UnwindSafe for SimdCharClassifier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more