pub struct SimdStringStats {
pub avx2_available: bool,
pub sse2_available: bool,
pub simd_operations: u64,
pub scalar_operations: u64,
}Expand description
SIMD string operation statistics
Fields§
§avx2_available: boolWhether AVX2 is available
sse2_available: boolWhether SSE2 is available
simd_operations: u64Number of strings processed with SIMD
scalar_operations: u64Number of strings processed with scalar fallback
Implementations§
Source§impl SimdStringStats
impl SimdStringStats
Sourcepub fn simd_level(&self) -> &'static str
pub fn simd_level(&self) -> &'static str
Get the best available SIMD level
Trait Implementations§
Source§impl Clone for SimdStringStats
impl Clone for SimdStringStats
Source§fn clone(&self) -> SimdStringStats
fn clone(&self) -> SimdStringStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimdStringStats
impl Debug for SimdStringStats
Source§impl Default for SimdStringStats
impl Default for SimdStringStats
Source§fn default() -> SimdStringStats
fn default() -> SimdStringStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SimdStringStats
impl RefUnwindSafe for SimdStringStats
impl Send for SimdStringStats
impl Sync for SimdStringStats
impl Unpin for SimdStringStats
impl UnsafeUnpin for SimdStringStats
impl UnwindSafe for SimdStringStats
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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