Skip to main content

ExtendedFeatureFlagsD

Struct ExtendedFeatureFlagsD 

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

The layout of EDX in EXTENDED_FEATURES_D.

Implementations§

Source§

impl ExtendedFeatureFlagsD

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

Unshifted bitmask of ssbd.

Source

pub const SSBD_SHIFT: usize = 31

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

Source

pub const IA32_CORE_CAPABILITIES_MASK: u32

Unshifted bitmask of ia32_core_capabilities.

Source

pub const IA32_CORE_CAPABILITIES_SHIFT: usize = 30

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

Source

pub const IA32_ARCH_CAPABILITIES_MASK: u32

Unshifted bitmask of ia32_arch_capabilities.

Source

pub const IA32_ARCH_CAPABILITIES_SHIFT: usize = 29

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

Source

pub const L1D_FLUSH_MASK: u32

Unshifted bitmask of l1d_flush.

Source

pub const L1D_FLUSH_SHIFT: usize = 28

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

Source

pub const STIBP_MASK: u32

Unshifted bitmask of stibp.

Source

pub const STIBP_SHIFT: usize = 27

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

Source

pub const IBRS_IBPB_MASK: u32

Unshifted bitmask of ibrs_ibpb.

Source

pub const IBRS_IBPB_SHIFT: usize = 26

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

Source

pub const CET_IBT_MASK: u32

Unshifted bitmask of cet_ibt.

Source

pub const CET_IBT_SHIFT: usize = 20

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

Source

pub const PCONFIG_MASK: u32

Unshifted bitmask of pconfig.

Source

pub const PCONFIG_SHIFT: usize = 18

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

Source

pub const HYBRID_MASK: u32

Unshifted bitmask of hybrid.

Source

pub const HYBRID_SHIFT: usize = 15

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

Source

pub const SERIALIZE_MASK: u32

Unshifted bitmask of serialize.

Source

pub const SERIALIZE_SHIFT: usize = 14

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

Source

pub const MD_CLEAR_MASK: u32

Unshifted bitmask of md_clear.

Source

pub const MD_CLEAR_SHIFT: usize = 10

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

Source

pub const AVX512_VP2INTERSECT_MASK: u32

Unshifted bitmask of avx512_vp2intersect.

Source

pub const AVX512_VP2INTERSECT_SHIFT: usize = 8

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

Source

pub const FSRM_MASK: u32

Unshifted bitmask of fsrm.

Source

pub const FSRM_SHIFT: usize = 4

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

Source

pub const AVX512_4FMAPS_MASK: u32

Unshifted bitmask of avx512_4fmaps.

Source

pub const AVX512_4FMAPS_SHIFT: usize = 3

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

Source

pub const AVX512_4VNNIW_MASK: u32

Unshifted bitmask of avx512_4vnniw.

Source

pub const AVX512_4VNNIW_SHIFT: usize = 2

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

Source

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

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

The value of ExtendedFeatureFlagsD31.

Source

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

Sets the value of ExtendedFeatureFlagsD31.

Source

pub const fn ia32_core_capabilities(&self) -> bool

The value of ExtendedFeatureFlagsD30.

Source

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

Sets the value of ExtendedFeatureFlagsD30.

Source

pub const fn ia32_arch_capabilities(&self) -> bool

The value of ExtendedFeatureFlagsD29.

Source

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

Sets the value of ExtendedFeatureFlagsD29.

Source

pub const fn l1d_flush(&self) -> bool

The value of ExtendedFeatureFlagsD28.

Source

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

Sets the value of ExtendedFeatureFlagsD28.

Source

pub const fn stibp(&self) -> bool

The value of ExtendedFeatureFlagsD27.

Source

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

Sets the value of ExtendedFeatureFlagsD27.

Source

pub const fn ibrs_ibpb(&self) -> bool

The value of ExtendedFeatureFlagsD26.

Source

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

Sets the value of ExtendedFeatureFlagsD26.

Source

pub const fn cet_ibt(&self) -> bool

The value of ExtendedFeatureFlagsD20.

Source

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

Sets the value of ExtendedFeatureFlagsD20.

Source

pub const fn pconfig(&self) -> bool

The value of ExtendedFeatureFlagsD18.

Source

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

Sets the value of ExtendedFeatureFlagsD18.

Source

pub const fn hybrid(&self) -> bool

The value of ExtendedFeatureFlagsD15.

Source

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

Sets the value of ExtendedFeatureFlagsD15.

Source

pub const fn serialize(&self) -> bool

The value of ExtendedFeatureFlagsD14.

Source

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

Sets the value of ExtendedFeatureFlagsD14.

Source

pub const fn md_clear(&self) -> bool

The value of ExtendedFeatureFlagsD10.

Source

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

Sets the value of ExtendedFeatureFlagsD10.

Source

pub const fn avx512_vp2intersect(&self) -> bool

The value of ExtendedFeatureFlagsD8.

Source

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

Sets the value of ExtendedFeatureFlagsD8.

Source

pub const fn fsrm(&self) -> bool

The value of ExtendedFeatureFlagsD4.

Source

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

Sets the value of ExtendedFeatureFlagsD4.

Source

pub const fn avx512_4fmaps(&self) -> bool

The value of ExtendedFeatureFlagsD3.

Source

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

Sets the value of ExtendedFeatureFlagsD3.

Source

pub const fn avx512_4vnniw(&self) -> bool

The value of ExtendedFeatureFlagsD2.

Source

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

Sets the value of ExtendedFeatureFlagsD2.

Source§

impl ExtendedFeatureFlagsD

Source

pub fn iter(&self) -> ExtendedFeatureFlagsDIter

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

Trait Implementations§

Source§

impl Binary for ExtendedFeatureFlagsD

Source§

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

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

impl Clone for ExtendedFeatureFlagsD

Source§

fn clone(&self) -> ExtendedFeatureFlagsD

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 ExtendedFeatureFlagsD

Source§

impl Debug for ExtendedFeatureFlagsD

Source§

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

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

impl Default for ExtendedFeatureFlagsD

Source§

fn default() -> Self

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

Source§

impl Eq for ExtendedFeatureFlagsD

Source§

impl From<ExtendedFeatureFlagsD> for u32

Source§

fn from(value: ExtendedFeatureFlagsD) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for ExtendedFeatureFlagsD

Source§

fn from(value: u32) -> Self

Converts to this type from the input type.
Source§

impl IntoIterator for ExtendedFeatureFlagsD

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = ExtendedFeatureFlagsDIter

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 ExtendedFeatureFlagsD

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = ExtendedFeatureFlagsDIter

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 ExtendedFeatureFlagsD

Source§

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

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

impl Octal for ExtendedFeatureFlagsD

Source§

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

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

impl PartialEq for ExtendedFeatureFlagsD

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ExtendedFeatureFlagsD

Source§

impl UpperHex for ExtendedFeatureFlagsD

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for ExtendedFeatureFlagsD

§

impl RefUnwindSafe for ExtendedFeatureFlagsD

§

impl Send for ExtendedFeatureFlagsD

§

impl Sync for ExtendedFeatureFlagsD

§

impl Unpin for ExtendedFeatureFlagsD

§

impl UnsafeUnpin for ExtendedFeatureFlagsD

§

impl UnwindSafe for ExtendedFeatureFlagsD

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.