Skip to main content

FeatureFlagsD

Struct FeatureFlagsD 

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

The layout of EDX in FEATURE_FLAGS_D.

Implementations§

Source§

impl FeatureFlagsD

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 PBE_MASK: u32

Unshifted bitmask of pbe.

Source

pub const PBE_SHIFT: usize = 31

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

Source

pub const TM_MASK: u32

Unshifted bitmask of tm.

Source

pub const TM_SHIFT: usize = 29

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

Source

pub const HTT_MASK: u32

Unshifted bitmask of htt.

Source

pub const HTT_SHIFT: usize = 28

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

Source

pub const SS_MASK: u32

Unshifted bitmask of ss.

Source

pub const SS_SHIFT: usize = 27

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

Source

pub const SSE2_MASK: u32

Unshifted bitmask of sse2.

Source

pub const SSE2_SHIFT: usize = 26

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

Source

pub const SSE_MASK: u32

Unshifted bitmask of sse.

Source

pub const SSE_SHIFT: usize = 25

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

Source

pub const FXSR_MASK: u32

Unshifted bitmask of fxsr.

Source

pub const FXSR_SHIFT: usize = 24

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

Source

pub const MMX_MASK: u32

Unshifted bitmask of mmx.

Source

pub const MMX_SHIFT: usize = 23

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

Source

pub const ACPI_MASK: u32

Unshifted bitmask of acpi.

Source

pub const ACPI_SHIFT: usize = 22

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

Source

pub const DS_MASK: u32

Unshifted bitmask of ds.

Source

pub const DS_SHIFT: usize = 21

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

Source

pub const CLFSH_MASK: u32

Unshifted bitmask of clfsh.

Source

pub const CLFSH_SHIFT: usize = 19

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

Source

pub const PSN_MASK: u32

Unshifted bitmask of psn.

Source

pub const PSN_SHIFT: usize = 18

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

Source

pub const PSE36_MASK: u32

Unshifted bitmask of pse36.

Source

pub const PSE36_SHIFT: usize = 17

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

Source

pub const PAT_MASK: u32

Unshifted bitmask of pat.

Source

pub const PAT_SHIFT: usize = 16

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

Source

pub const CMOV_MASK: u32

Unshifted bitmask of cmov.

Source

pub const CMOV_SHIFT: usize = 15

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

Source

pub const MCA_MASK: u32

Unshifted bitmask of mca.

Source

pub const MCA_SHIFT: usize = 14

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

Source

pub const PGE_MASK: u32

Unshifted bitmask of pge.

Source

pub const PGE_SHIFT: usize = 13

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

Source

pub const MTRR_MASK: u32

Unshifted bitmask of mtrr.

Source

pub const MTRR_SHIFT: usize = 12

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

Source

pub const SEP_MASK: u32

Unshifted bitmask of sep.

Source

pub const SEP_SHIFT: usize = 11

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

Source

pub const APIC_MASK: u32

Unshifted bitmask of apic.

Source

pub const APIC_SHIFT: usize = 9

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

Source

pub const CX8_MASK: u32

Unshifted bitmask of cx8.

Source

pub const CX8_SHIFT: usize = 8

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

Source

pub const MCE_MASK: u32

Unshifted bitmask of mce.

Source

pub const MCE_SHIFT: usize = 7

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

Source

pub const PAE_MASK: u32

Unshifted bitmask of pae.

Source

pub const PAE_SHIFT: usize = 6

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

Source

pub const MSR_MASK: u32

Unshifted bitmask of msr.

Source

pub const MSR_SHIFT: usize = 5

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

Source

pub const TSC_MASK: u32

Unshifted bitmask of tsc.

Source

pub const TSC_SHIFT: usize = 4

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

Source

pub const PSE_MASK: u32

Unshifted bitmask of pse.

Source

pub const PSE_SHIFT: usize = 3

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

Source

pub const DE_MASK: u32

Unshifted bitmask of de.

Source

pub const DE_SHIFT: usize = 2

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

Source

pub const VME_MASK: u32

Unshifted bitmask of vme.

Source

pub const VME_SHIFT: usize = 1

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

Source

pub const FPU_MASK: u32

Unshifted bitmask of fpu.

Source

pub const FPU_SHIFT: usize = 0

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

Source

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

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 pbe(&self) -> bool

The value of FeatureFlagsD31.

Source

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

Sets the value of FeatureFlagsD31.

Source

pub const fn tm(&self) -> bool

The value of FeatureFlagsD29.

Source

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

Sets the value of FeatureFlagsD29.

Source

pub const fn htt(&self) -> bool

The value of FeatureFlagsD28.

Source

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

Sets the value of FeatureFlagsD28.

Source

pub const fn ss(&self) -> bool

The value of FeatureFlagsD27.

Source

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

Sets the value of FeatureFlagsD27.

Source

pub const fn sse2(&self) -> bool

The value of FeatureFlagsD26.

Source

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

Sets the value of FeatureFlagsD26.

Source

pub const fn sse(&self) -> bool

The value of FeatureFlagsD25.

Source

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

Sets the value of FeatureFlagsD25.

Source

pub const fn fxsr(&self) -> bool

The value of FeatureFlagsD24.

Source

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

Sets the value of FeatureFlagsD24.

Source

pub const fn mmx(&self) -> bool

The value of FeatureFlagsD23.

Source

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

Sets the value of FeatureFlagsD23.

Source

pub const fn acpi(&self) -> bool

The value of FeatureFlagsD22.

Source

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

Sets the value of FeatureFlagsD22.

Source

pub const fn ds(&self) -> bool

The value of FeatureFlagsD21.

Source

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

Sets the value of FeatureFlagsD21.

Source

pub const fn clfsh(&self) -> bool

The value of FeatureFlagsD19.

Source

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

Sets the value of FeatureFlagsD19.

Source

pub const fn psn(&self) -> bool

The value of FeatureFlagsD18.

Source

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

Sets the value of FeatureFlagsD18.

Source

pub const fn pse36(&self) -> bool

The value of FeatureFlagsD17.

Source

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

Sets the value of FeatureFlagsD17.

Source

pub const fn pat(&self) -> bool

The value of FeatureFlagsD16.

Source

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

Sets the value of FeatureFlagsD16.

Source

pub const fn cmov(&self) -> bool

The value of FeatureFlagsD15.

Source

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

Sets the value of FeatureFlagsD15.

Source

pub const fn mca(&self) -> bool

The value of FeatureFlagsD14.

Source

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

Sets the value of FeatureFlagsD14.

Source

pub const fn pge(&self) -> bool

The value of FeatureFlagsD13.

Source

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

Sets the value of FeatureFlagsD13.

Source

pub const fn mtrr(&self) -> bool

The value of FeatureFlagsD12.

Source

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

Sets the value of FeatureFlagsD12.

Source

pub const fn sep(&self) -> bool

The value of FeatureFlagsD11.

Source

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

Sets the value of FeatureFlagsD11.

Source

pub const fn apic(&self) -> bool

The value of FeatureFlagsD9.

Source

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

Sets the value of FeatureFlagsD9.

Source

pub const fn cx8(&self) -> bool

The value of FeatureFlagsD8.

Source

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

Sets the value of FeatureFlagsD8.

Source

pub const fn mce(&self) -> bool

The value of FeatureFlagsD7.

Source

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

Sets the value of FeatureFlagsD7.

Source

pub const fn pae(&self) -> bool

The value of FeatureFlagsD6.

Source

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

Sets the value of FeatureFlagsD6.

Source

pub const fn msr(&self) -> bool

The value of FeatureFlagsD5.

Source

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

Sets the value of FeatureFlagsD5.

Source

pub const fn tsc(&self) -> bool

The value of FeatureFlagsD4.

Source

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

Sets the value of FeatureFlagsD4.

Source

pub const fn pse(&self) -> bool

The value of FeatureFlagsD3.

Source

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

Sets the value of FeatureFlagsD3.

Source

pub const fn de(&self) -> bool

The value of FeatureFlagsD2.

Source

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

Sets the value of FeatureFlagsD2.

Source

pub const fn vme(&self) -> bool

The value of FeatureFlagsD1.

Source

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

Sets the value of FeatureFlagsD1.

Source

pub const fn fpu(&self) -> bool

The value of FeatureFlagsD0.

Source

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

Sets the value of FeatureFlagsD0.

Source§

impl FeatureFlagsD

Source

pub fn iter(&self) -> FeatureFlagsDIter

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

Trait Implementations§

Source§

impl Binary for FeatureFlagsD

Source§

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

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

impl Clone for FeatureFlagsD

Source§

fn clone(&self) -> FeatureFlagsD

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 FeatureFlagsD

Source§

impl Debug for FeatureFlagsD

Source§

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

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

impl Default for FeatureFlagsD

Source§

fn default() -> Self

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

Source§

impl Eq for FeatureFlagsD

Source§

impl From<FeatureFlagsD> for u32

Source§

fn from(value: FeatureFlagsD) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for FeatureFlagsD

Source§

fn from(value: u32) -> Self

Converts to this type from the input type.
Source§

impl IntoIterator for FeatureFlagsD

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = FeatureFlagsDIter

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 FeatureFlagsD

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = FeatureFlagsDIter

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 FeatureFlagsD

Source§

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

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

impl Octal for FeatureFlagsD

Source§

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

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

impl PartialEq for FeatureFlagsD

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for FeatureFlagsD

Source§

impl UpperHex for FeatureFlagsD

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for FeatureFlagsD

§

impl RefUnwindSafe for FeatureFlagsD

§

impl Send for FeatureFlagsD

§

impl Sync for FeatureFlagsD

§

impl Unpin for FeatureFlagsD

§

impl UnsafeUnpin for FeatureFlagsD

§

impl UnwindSafe for FeatureFlagsD

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.