pub struct CpuFeatures(/* private fields */);
Available on crate feature
compiler
only.Expand description
CPU feature support flags
Implementations§
Source§impl CpuFeatures
impl CpuFeatures
Sourcepub const AVX2: Self
pub const AVX2: Self
Intel(R) Advanced Vector Extensions 2 (Intel(R) AVX2)
Setting this flag indicates that the target platform supports AVX2 instructions.
Sourcepub const AVX512: Self
pub const AVX512: Self
Intel(R) Advanced Vector Extensions 512 (Intel(R) AVX512)
Setting this flag indicates that the target platform supports AVX512 instructions, specifically AVX-512BW. Using AVX512 implies the use of AVX2.
Sourcepub const AVX512VBMI: Self
pub const AVX512VBMI: Self
Intel(R) Advanced Vector Extensions 512 Vector Byte Manipulation Instructions (Intel(R) AVX512VBMI)
Setting this flag indicates that the target platform supports AVX512VBMI instructions. Using AVX512VBMI implies the use of AVX512.
Trait Implementations§
Source§impl BitAnd for CpuFeatures
impl BitAnd for CpuFeatures
Source§impl BitAndAssign for CpuFeatures
impl BitAndAssign for CpuFeatures
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moreSource§impl BitOr for CpuFeatures
impl BitOr for CpuFeatures
Source§impl BitOrAssign for CpuFeatures
impl BitOrAssign for CpuFeatures
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moreSource§impl BitSet for CpuFeatures
impl BitSet for CpuFeatures
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 · 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 CpuFeatures
impl Debug for CpuFeatures
Source§impl Default for CpuFeatures
impl Default for CpuFeatures
Source§fn default() -> CpuFeatures
fn default() -> CpuFeatures
Returns the “default value” for a type. Read more
Source§impl Hash for CpuFeatures
impl Hash for CpuFeatures
Source§impl Not for CpuFeatures
impl Not for CpuFeatures
Source§impl Ord for CpuFeatures
impl Ord for CpuFeatures
Source§fn cmp(&self, other: &CpuFeatures) -> Ordering
fn cmp(&self, other: &CpuFeatures) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CpuFeatures
impl PartialEq for CpuFeatures
Source§impl PartialOrd for CpuFeatures
impl PartialOrd for CpuFeatures
impl Copy 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§
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.