pub struct SIMDCompare;Expand description
SIMD-accelerated string comparison
Implementations§
Source§impl SIMDCompare
impl SIMDCompare
Sourcepub fn compare_bytes_simd(a: &[u8], b: &[u8]) -> Ordering
pub fn compare_bytes_simd(a: &[u8], b: &[u8]) -> Ordering
Vectorized byte comparison using SIMD when available
Sourcepub fn compare_case_insensitive_simd(a: &[u8], b: &[u8]) -> Ordering
pub fn compare_case_insensitive_simd(a: &[u8], b: &[u8]) -> Ordering
Vectorized case-insensitive comparison
Sourcepub fn is_all_digits_simd(bytes: &[u8]) -> bool
pub fn is_all_digits_simd(bytes: &[u8]) -> bool
Fast numeric comparison using SIMD digit detection
Auto Trait Implementations§
impl Freeze for SIMDCompare
impl RefUnwindSafe for SIMDCompare
impl Send for SIMDCompare
impl Sync for SIMDCompare
impl Unpin for SIMDCompare
impl UnwindSafe for SIMDCompare
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