Skip to main content

FeatureFlagsC

Struct FeatureFlagsC 

Source
pub struct FeatureFlagsC(/* private fields */);
Expand description

The layout of ECX in FEATURE_FLAGS_C.

Implementations§

Source§

impl FeatureFlagsC

Source

pub const RSVD1_MASK: u32

Mask of all reserved-as-1 bits.

Source

pub const RSVD0_MASK: u32

Mask of all reserved-as-0 bits.

Source

pub const DEFAULT: u32

The default value of the layout, combining all field defaults and reserved-as values.

Source

pub const HYPERVISOR_MASK: u32

Unshifted bitmask of hypervisor.

Source

pub const HYPERVISOR_SHIFT: usize = 31

Bit shift (i.e., the low bit) of hypervisor.

Source

pub const RDRAND_MASK: u32

Unshifted bitmask of rdrand.

Source

pub const RDRAND_SHIFT: usize = 30

Bit shift (i.e., the low bit) of rdrand.

Source

pub const F16C_MASK: u32

Unshifted bitmask of f16c.

Source

pub const F16C_SHIFT: usize = 29

Bit shift (i.e., the low bit) of f16c.

Source

pub const AVX_MASK: u32

Unshifted bitmask of avx.

Source

pub const AVX_SHIFT: usize = 28

Bit shift (i.e., the low bit) of avx.

Source

pub const OSXSAVE_MASK: u32

Unshifted bitmask of osxsave.

Source

pub const OSXSAVE_SHIFT: usize = 27

Bit shift (i.e., the low bit) of osxsave.

Source

pub const XSAVE_MASK: u32

Unshifted bitmask of xsave.

Source

pub const XSAVE_SHIFT: usize = 26

Bit shift (i.e., the low bit) of xsave.

Source

pub const AES_MASK: u32

Unshifted bitmask of aes.

Source

pub const AES_SHIFT: usize = 25

Bit shift (i.e., the low bit) of aes.

Source

pub const TSC_DEADLINE_MASK: u32

Unshifted bitmask of tsc_deadline.

Source

pub const TSC_DEADLINE_SHIFT: usize = 24

Bit shift (i.e., the low bit) of tsc_deadline.

Source

pub const POPCNT_MASK: u32

Unshifted bitmask of popcnt.

Source

pub const POPCNT_SHIFT: usize = 23

Bit shift (i.e., the low bit) of popcnt.

Source

pub const MOVBE_MASK: u32

Unshifted bitmask of movbe.

Source

pub const MOVBE_SHIFT: usize = 22

Bit shift (i.e., the low bit) of movbe.

Source

pub const X2APIC_MASK: u32

Unshifted bitmask of x2apic.

Source

pub const X2APIC_SHIFT: usize = 21

Bit shift (i.e., the low bit) of x2apic.

Source

pub const SSE4_2_MASK: u32

Unshifted bitmask of sse4_2.

Source

pub const SSE4_2_SHIFT: usize = 20

Bit shift (i.e., the low bit) of sse4_2.

Source

pub const SSE4_1_MASK: u32

Unshifted bitmask of sse4_1.

Source

pub const SSE4_1_SHIFT: usize = 19

Bit shift (i.e., the low bit) of sse4_1.

Source

pub const DCA_MASK: u32

Unshifted bitmask of dca.

Source

pub const DCA_SHIFT: usize = 18

Bit shift (i.e., the low bit) of dca.

Source

pub const PCID_MASK: u32

Unshifted bitmask of pcid.

Source

pub const PCID_SHIFT: usize = 17

Bit shift (i.e., the low bit) of pcid.

Source

pub const PDCM_MASK: u32

Unshifted bitmask of pdcm.

Source

pub const PDCM_SHIFT: usize = 15

Bit shift (i.e., the low bit) of pdcm.

Source

pub const XTPR_MASK: u32

Unshifted bitmask of xtpr.

Source

pub const XTPR_SHIFT: usize = 14

Bit shift (i.e., the low bit) of xtpr.

Source

pub const CMPXCHG16B_MASK: u32

Unshifted bitmask of cmpxchg16b.

Source

pub const CMPXCHG16B_SHIFT: usize = 13

Bit shift (i.e., the low bit) of cmpxchg16b.

Source

pub const FMA_MASK: u32

Unshifted bitmask of fma.

Source

pub const FMA_SHIFT: usize = 12

Bit shift (i.e., the low bit) of fma.

Source

pub const SDBG_MASK: u32

Unshifted bitmask of sdbg.

Source

pub const SDBG_SHIFT: usize = 11

Bit shift (i.e., the low bit) of sdbg.

Source

pub const CNXT_ID_MASK: u32

Unshifted bitmask of cnxt_id.

Source

pub const CNXT_ID_SHIFT: usize = 10

Bit shift (i.e., the low bit) of cnxt_id.

Source

pub const SSSE3_MASK: u32

Unshifted bitmask of ssse3.

Source

pub const SSSE3_SHIFT: usize = 9

Bit shift (i.e., the low bit) of ssse3.

Source

pub const TM2_MASK: u32

Unshifted bitmask of tm2.

Source

pub const TM2_SHIFT: usize = 8

Bit shift (i.e., the low bit) of tm2.

Source

pub const EIST_MASK: u32

Unshifted bitmask of eist.

Source

pub const EIST_SHIFT: usize = 7

Bit shift (i.e., the low bit) of eist.

Source

pub const SMX_MASK: u32

Unshifted bitmask of smx.

Source

pub const SMX_SHIFT: usize = 6

Bit shift (i.e., the low bit) of smx.

Source

pub const VMX_MASK: u32

Unshifted bitmask of vmx.

Source

pub const VMX_SHIFT: usize = 5

Bit shift (i.e., the low bit) of vmx.

Source

pub const DS_CPL_MASK: u32

Unshifted bitmask of ds_cpl.

Source

pub const DS_CPL_SHIFT: usize = 4

Bit shift (i.e., the low bit) of ds_cpl.

Source

pub const MONITOR_MASK: u32

Unshifted bitmask of monitor.

Source

pub const MONITOR_SHIFT: usize = 3

Bit shift (i.e., the low bit) of monitor.

Source

pub const DTES64_MASK: u32

Unshifted bitmask of dtes64.

Source

pub const DTES64_SHIFT: usize = 2

Bit shift (i.e., the low bit) of dtes64.

Source

pub const PCLMULQDQ_MASK: u32

Unshifted bitmask of pclmulqdq.

Source

pub const PCLMULQDQ_SHIFT: usize = 1

Bit shift (i.e., the low bit) of pclmulqdq.

Source

pub const SSE3_MASK: u32

Unshifted bitmask of sse3.

Source

pub const SSE3_SHIFT: usize = 0

Bit shift (i.e., the low bit) of sse3.

Source

pub const FIELDS: [FieldMetadata<u32>; 31]

Metadata of all named fields in the layout.

Source

pub const fn new() -> Self

Creates a new instance with reserved-as-1 bits set and all other bits zeroed (i.e., with a value of Self::RSVD1_MASK).

Source

pub const fn bits(self) -> u32

Source

pub const fn hypervisor(&self) -> bool

The value of FeatureFlagsC31.

Source

pub const fn set_hypervisor(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC31.

Source

pub const fn rdrand(&self) -> bool

The value of FeatureFlagsC30.

Source

pub const fn set_rdrand(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC30.

Source

pub const fn f16c(&self) -> bool

The value of FeatureFlagsC29.

Source

pub const fn set_f16c(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC29.

Source

pub const fn avx(&self) -> bool

The value of FeatureFlagsC28.

Source

pub const fn set_avx(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC28.

Source

pub const fn osxsave(&self) -> bool

The value of FeatureFlagsC27.

Source

pub const fn set_osxsave(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC27.

Source

pub const fn xsave(&self) -> bool

The value of FeatureFlagsC26.

Source

pub const fn set_xsave(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC26.

Source

pub const fn aes(&self) -> bool

The value of FeatureFlagsC25.

Source

pub const fn set_aes(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC25.

Source

pub const fn tsc_deadline(&self) -> bool

The value of FeatureFlagsC24.

Source

pub const fn set_tsc_deadline(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC24.

Source

pub const fn popcnt(&self) -> bool

The value of FeatureFlagsC23.

Source

pub const fn set_popcnt(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC23.

Source

pub const fn movbe(&self) -> bool

The value of FeatureFlagsC22.

Source

pub const fn set_movbe(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC22.

Source

pub const fn x2apic(&self) -> bool

The value of FeatureFlagsC21.

Source

pub const fn set_x2apic(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC21.

Source

pub const fn sse4_2(&self) -> bool

The value of FeatureFlagsC20.

Source

pub const fn set_sse4_2(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC20.

Source

pub const fn sse4_1(&self) -> bool

The value of FeatureFlagsC19.

Source

pub const fn set_sse4_1(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC19.

Source

pub const fn dca(&self) -> bool

The value of FeatureFlagsC18.

Source

pub const fn set_dca(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC18.

Source

pub const fn pcid(&self) -> bool

The value of FeatureFlagsC17.

Source

pub const fn set_pcid(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC17.

Source

pub const fn pdcm(&self) -> bool

The value of FeatureFlagsC15.

Source

pub const fn set_pdcm(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC15.

Source

pub const fn xtpr(&self) -> bool

The value of FeatureFlagsC14.

Source

pub const fn set_xtpr(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC14.

Source

pub const fn cmpxchg16b(&self) -> bool

The value of FeatureFlagsC13.

Source

pub const fn set_cmpxchg16b(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC13.

Source

pub const fn fma(&self) -> bool

The value of FeatureFlagsC12.

Source

pub const fn set_fma(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC12.

Source

pub const fn sdbg(&self) -> bool

The value of FeatureFlagsC11.

Source

pub const fn set_sdbg(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC11.

Source

pub const fn cnxt_id(&self) -> bool

The value of FeatureFlagsC10.

Source

pub const fn set_cnxt_id(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC10.

Source

pub const fn ssse3(&self) -> bool

The value of FeatureFlagsC9.

Source

pub const fn set_ssse3(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC9.

Source

pub const fn tm2(&self) -> bool

The value of FeatureFlagsC8.

Source

pub const fn set_tm2(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC8.

Source

pub const fn eist(&self) -> bool

The value of FeatureFlagsC7.

Source

pub const fn set_eist(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC7.

Source

pub const fn smx(&self) -> bool

The value of FeatureFlagsC6.

Source

pub const fn set_smx(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC6.

Source

pub const fn vmx(&self) -> bool

The value of FeatureFlagsC5.

Source

pub const fn set_vmx(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC5.

Source

pub const fn ds_cpl(&self) -> bool

The value of FeatureFlagsC4.

Source

pub const fn set_ds_cpl(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC4.

Source

pub const fn monitor(&self) -> bool

The value of FeatureFlagsC3.

Source

pub const fn set_monitor(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC3.

Source

pub const fn dtes64(&self) -> bool

The value of FeatureFlagsC2.

Source

pub const fn set_dtes64(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC2.

Source

pub const fn pclmulqdq(&self) -> bool

The value of FeatureFlagsC1.

Source

pub const fn set_pclmulqdq(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC1.

Source

pub const fn sse3(&self) -> bool

The value of FeatureFlagsC0.

Source

pub const fn set_sse3(&mut self, value: bool) -> &mut Self

Sets the value of FeatureFlagsC0.

Source§

impl FeatureFlagsC

Source

pub fn iter(&self) -> FeatureFlagsCIter

Returns an iterator over (metadata, value) pairs for each field.

Trait Implementations§

Source§

impl Binary for FeatureFlagsC

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Clone for FeatureFlagsC

Source§

fn clone(&self) -> FeatureFlagsC

Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for FeatureFlagsC

Source§

impl Debug for FeatureFlagsC

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FeatureFlagsC

Source§

fn default() -> Self

Returns an instance with the default bits set (i.e,. with a value of Self::DEFAULT.

Source§

impl Eq for FeatureFlagsC

Source§

impl From<FeatureFlagsC> for u32

Source§

fn from(value: FeatureFlagsC) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for FeatureFlagsC

Source§

fn from(value: u32) -> Self

Converts to this type from the input type.
Source§

impl IntoIterator for FeatureFlagsC

Source§

type Item = (&'static FieldMetadata<u32>, u32)

The type of the elements being iterated over.
Source§

type IntoIter = FeatureFlagsCIter

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<'a> IntoIterator for &'a FeatureFlagsC

Source§

type Item = (&'static FieldMetadata<u32>, u32)

The type of the elements being iterated over.
Source§

type IntoIter = FeatureFlagsCIter

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl LowerHex for FeatureFlagsC

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Octal for FeatureFlagsC

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for FeatureFlagsC

Source§

fn eq(&self, other: &FeatureFlagsC) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable)§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for FeatureFlagsC

Source§

impl UpperHex for FeatureFlagsC

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for FeatureFlagsC

§

impl RefUnwindSafe for FeatureFlagsC

§

impl Send for FeatureFlagsC

§

impl Sync for FeatureFlagsC

§

impl Unpin for FeatureFlagsC

§

impl UnsafeUnpin for FeatureFlagsC

§

impl UnwindSafe for FeatureFlagsC

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

Source§

impl<Layout, Base> LayoutOver<Base> for Layout
where Layout: Copy + From<Base> + Into<Base>,

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = !

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.