pub struct OptimizationCapabilities {
pub simd_available: bool,
pub memory_efficient_available: bool,
pub thread_pool_available: bool,
pub num_threads: usize,
}
Expand description
Information about available optimization capabilities
Fields§
§simd_available: bool
Whether SIMD optimizations are available
memory_efficient_available: bool
Whether memory-efficient operations are available
thread_pool_available: bool
Whether thread pool is available
num_threads: usize
Number of threads in the pool
Implementations§
Source§impl OptimizationCapabilities
impl OptimizationCapabilities
Sourcepub fn all_available(&self) -> bool
pub fn all_available(&self) -> bool
Check if all optimizations are available
Sourcepub fn optimization_score(&self) -> f32
pub fn optimization_score(&self) -> f32
Get optimization score (0.0 to 1.0)
Trait Implementations§
Source§impl Clone for OptimizationCapabilities
impl Clone for OptimizationCapabilities
Source§fn clone(&self) -> OptimizationCapabilities
fn clone(&self) -> OptimizationCapabilities
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OptimizationCapabilities
impl Debug for OptimizationCapabilities
Auto Trait Implementations§
impl Freeze for OptimizationCapabilities
impl RefUnwindSafe for OptimizationCapabilities
impl Send for OptimizationCapabilities
impl Sync for OptimizationCapabilities
impl Unpin for OptimizationCapabilities
impl UnwindSafe for OptimizationCapabilities
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