#[repr(u64)]pub enum CpuFeature {
Show 22 variants
Sse = 1,
Sse2 = 2,
Vmx = 4,
Vmx128 = 8,
Avx = 16,
Neon = 32,
Sse3 = 64,
Ssse3 = 128,
Mmx = 256,
MmxExt = 512,
Sse4 = 1_024,
Sse42 = 2_048,
Avx2 = 4_096,
Vfpu = 8_192,
Ps = 16_384,
Aes = 32_768,
Vfpv3 = 65_536,
Vfpv4 = 131_072,
Popcnt = 262_144,
Movbe = 524_288,
Cmov = 1_048_576,
Asimd = 2_097_152,
}Variants§
Sse = 1
Sse2 = 2
Vmx = 4
Vmx128 = 8
Avx = 16
Neon = 32
Sse3 = 64
Ssse3 = 128
Mmx = 256
MmxExt = 512
Sse4 = 1_024
Sse42 = 2_048
Avx2 = 4_096
Vfpu = 8_192
Ps = 16_384
Aes = 32_768
Vfpv3 = 65_536
Vfpv4 = 131_072
Popcnt = 262_144
Movbe = 524_288
Cmov = 1_048_576
Asimd = 2_097_152
Trait Implementations§
Source§impl BitAnd for CpuFeature
impl BitAnd for CpuFeature
Source§impl BitFlag for CpuFeature
impl BitFlag for CpuFeature
Source§fn empty() -> BitFlags<Self>
fn empty() -> BitFlags<Self>
Create a
BitFlags with no flags set (in other words, with a value of 0). Read moreSource§fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
Create a
BitFlags if the raw value provided does not contain
any illegal flags. Read moreSource§fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags from an underlying bitwise value. If any
invalid bits are set, ignore them. Read moreSource§unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags unsafely, without checking if the bits form
a valid bit pattern for the type. Read moreSource§impl BitOr for CpuFeature
impl BitOr for CpuFeature
Source§impl BitXor for CpuFeature
impl BitXor for CpuFeature
Source§impl Clone for CpuFeature
impl Clone for CpuFeature
Source§fn clone(&self) -> CpuFeature
fn clone(&self) -> CpuFeature
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 CpuFeature
impl Debug for CpuFeature
Source§impl Hash for CpuFeature
impl Hash for CpuFeature
Source§impl Not for CpuFeature
impl Not for CpuFeature
Source§impl PartialEq for CpuFeature
impl PartialEq for CpuFeature
Source§fn eq(&self, other: &CpuFeature) -> bool
fn eq(&self, other: &CpuFeature) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RawBitFlags for CpuFeature
impl RawBitFlags for CpuFeature
impl Copy for CpuFeature
impl Eq for CpuFeature
impl StructuralPartialEq for CpuFeature
Auto Trait Implementations§
impl Freeze for CpuFeature
impl RefUnwindSafe for CpuFeature
impl Send for CpuFeature
impl Sync for CpuFeature
impl Unpin for CpuFeature
impl UnsafeUnpin for CpuFeature
impl UnwindSafe for CpuFeature
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