pub struct SimdConfig {
pub enabled: bool,
pub min_size_threshold: usize,
pub force_width: Option<usize>,
pub use_parallel: bool,
}Expand description
Configuration for SIMD optimizations
Fields§
§enabled: boolWhether to use SIMD optimizations
min_size_threshold: usizeMinimum array size to use SIMD (avoids overhead for small arrays)
force_width: Option<usize>Force specific SIMD width (None for auto-detection)
use_parallel: boolWhether to use parallel SIMD for large arrays
Trait Implementations§
Source§impl Clone for SimdConfig
impl Clone for SimdConfig
Source§fn clone(&self) -> SimdConfig
fn clone(&self) -> SimdConfig
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 SimdConfig
impl Debug for SimdConfig
Auto Trait Implementations§
impl Freeze for SimdConfig
impl RefUnwindSafe for SimdConfig
impl Send for SimdConfig
impl Sync for SimdConfig
impl Unpin for SimdConfig
impl UnwindSafe for SimdConfig
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