#[non_exhaustive]pub enum CandidateDetectionMode {
SimdFeatureDisabled,
RuntimeCpuFeatures,
CompileTimeTargetFeatures,
}Expand description
How SIMD backend candidates were detected for this build.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SimdFeatureDisabled
SIMD candidate detection is disabled because the simd feature is
not enabled.
RuntimeCpuFeatures
Candidate detection uses runtime CPU feature probing.
CompileTimeTargetFeatures
Candidate detection uses compile-time target features.
This mode does not prove that the deployment CPU has the reported feature; it only reflects how the binary was compiled.
Implementations§
Trait Implementations§
Source§impl Clone for CandidateDetectionMode
impl Clone for CandidateDetectionMode
Source§fn clone(&self) -> CandidateDetectionMode
fn clone(&self) -> CandidateDetectionMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CandidateDetectionMode
impl Debug for CandidateDetectionMode
Source§impl Display for CandidateDetectionMode
impl Display for CandidateDetectionMode
Source§impl PartialEq for CandidateDetectionMode
impl PartialEq for CandidateDetectionMode
Source§fn eq(&self, other: &CandidateDetectionMode) -> bool
fn eq(&self, other: &CandidateDetectionMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CandidateDetectionMode
impl Eq for CandidateDetectionMode
impl StructuralPartialEq for CandidateDetectionMode
Auto Trait Implementations§
impl Freeze for CandidateDetectionMode
impl RefUnwindSafe for CandidateDetectionMode
impl Send for CandidateDetectionMode
impl Sync for CandidateDetectionMode
impl Unpin for CandidateDetectionMode
impl UnsafeUnpin for CandidateDetectionMode
impl UnwindSafe for CandidateDetectionMode
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