pub struct FeatureChecker { /* private fields */ }Expand description
Feature availability checker
Implementations§
Source§impl FeatureChecker
impl FeatureChecker
Sourcepub fn simd_available(&self) -> bool
pub fn simd_available(&self) -> bool
Check if SIMD operations are available and beneficial
Sourcepub fn parallel_beneficial(&self) -> bool
pub fn parallel_beneficial(&self) -> bool
Check if parallel operations are beneficial
Sourcepub fn memory_mapping_available(&self) -> bool
pub fn memory_mapping_available(&self) -> bool
Check if memory mapping is available
Sourcepub fn high_resolution_timer_available(&self) -> bool
pub fn high_resolution_timer_available(&self) -> bool
Check if high-resolution timers are available
Sourcepub fn recommended_thread_count(&self) -> usize
pub fn recommended_thread_count(&self) -> usize
Get recommended number of threads for parallel operations
Sourcepub fn recommended_simd_width(&self) -> usize
pub fn recommended_simd_width(&self) -> usize
Get recommended SIMD width in elements
Sourcepub fn optimization_recommended(&self, optimization: &str) -> bool
pub fn optimization_recommended(&self, optimization: &str) -> bool
Check if specific optimization is recommended
Sourcepub fn get_recommendations(&self) -> Vec<String>
pub fn get_recommendations(&self) -> Vec<String>
Get optimization recommendations
Trait Implementations§
Source§impl Clone for FeatureChecker
impl Clone for FeatureChecker
Source§fn clone(&self) -> FeatureChecker
fn clone(&self) -> FeatureChecker
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 FeatureChecker
impl Debug for FeatureChecker
Auto Trait Implementations§
impl Freeze for FeatureChecker
impl RefUnwindSafe for FeatureChecker
impl Send for FeatureChecker
impl Sync for FeatureChecker
impl Unpin for FeatureChecker
impl UnwindSafe for FeatureChecker
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