pub struct CpuFeatures { /* private fields */ }Expand description
CPU hardware features that affect performance
Provides platform-specific CPU feature detection with caching. Detection is performed once and cached for the lifetime of the process.
Implementations§
Source§impl CpuFeatures
impl CpuFeatures
Trait Implementations§
Source§impl Clone for CpuFeatures
impl Clone for CpuFeatures
Source§fn clone(&self) -> CpuFeatures
fn clone(&self) -> CpuFeatures
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CpuFeatures
impl Debug for CpuFeatures
Source§impl HasHardwareFeatures for CpuFeatures
impl HasHardwareFeatures for CpuFeatures
fn has_feature(&self, feat: HardwareFeature) -> bool
fn iter_features(&self) -> impl Iterator<Item = HardwareFeature>
Source§fn has_avx512(&self) -> bool
fn has_avx512(&self) -> bool
Check if AVX-512 is available (x86/x86_64 only)
Source§fn has_pclmul(&self) -> bool
fn has_pclmul(&self) -> bool
Check if PCLMULQDQ is available (x86/x86_64 only)
Source§impl PartialEq for CpuFeatures
impl PartialEq for CpuFeatures
impl Eq for CpuFeatures
impl StructuralPartialEq for CpuFeatures
Auto Trait Implementations§
impl Freeze for CpuFeatures
impl RefUnwindSafe for CpuFeatures
impl Send for CpuFeatures
impl Sync for CpuFeatures
impl Unpin for CpuFeatures
impl UnwindSafe for CpuFeatures
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)