Struct x86defs::cpuid::ExtendedFeatureSubleaf0Ebx

source ·
pub struct ExtendedFeatureSubleaf0Ebx(/* private fields */);

Implementations§

source§

impl ExtendedFeatureSubleaf0Ebx

source

pub const fn new() -> Self

Creates a new default initialized bitfield.

source

pub const fn from_bits(bits: u32) -> Self

Convert from bits.

source

pub const fn into_bits(self) -> u32

Convert into bits.

source

pub const fn rd_wr_fs_gs(&self) -> bool

Bits: 0..1

source

pub const fn with_rd_wr_fs_gs(self, value: bool) -> Self

Bits: 0..1

source

pub fn set_rd_wr_fs_gs(&mut self, value: bool)

Bits: 0..1

source

pub const fn tsc_adjust(&self) -> bool

Bits: 1..2

source

pub const fn with_tsc_adjust(self, value: bool) -> Self

Bits: 1..2

source

pub fn set_tsc_adjust(&mut self, value: bool)

Bits: 1..2

source

pub const fn sgx(&self) -> bool

Bits: 2..3

source

pub const fn with_sgx(self, value: bool) -> Self

Bits: 2..3

source

pub fn set_sgx(&mut self, value: bool)

Bits: 2..3

source

pub const fn bmi1(&self) -> bool

Bits: 3..4

source

pub const fn with_bmi1(self, value: bool) -> Self

Bits: 3..4

source

pub fn set_bmi1(&mut self, value: bool)

Bits: 3..4

source

pub const fn hle(&self) -> bool

Bits: 4..5

source

pub const fn with_hle(self, value: bool) -> Self

Bits: 4..5

source

pub fn set_hle(&mut self, value: bool)

Bits: 4..5

source

pub const fn avx2(&self) -> bool

Bits: 5..6

source

pub const fn with_avx2(self, value: bool) -> Self

Bits: 5..6

source

pub fn set_avx2(&mut self, value: bool)

Bits: 5..6

source

pub const fn smep(&self) -> bool

Bits: 7..8

source

pub const fn with_smep(self, value: bool) -> Self

Bits: 7..8

source

pub fn set_smep(&mut self, value: bool)

Bits: 7..8

source

pub const fn bmi2(&self) -> bool

Bits: 8..9

source

pub const fn with_bmi2(self, value: bool) -> Self

Bits: 8..9

source

pub fn set_bmi2(&mut self, value: bool)

Bits: 8..9

source

pub const fn enhanced_fast_string(&self) -> bool

Bits: 9..10

source

pub const fn with_enhanced_fast_string(self, value: bool) -> Self

Bits: 9..10

source

pub fn set_enhanced_fast_string(&mut self, value: bool)

Bits: 9..10

source

pub const fn inv_pcid(&self) -> bool

Bits: 10..11

source

pub const fn with_inv_pcid(self, value: bool) -> Self

Bits: 10..11

source

pub fn set_inv_pcid(&mut self, value: bool)

Bits: 10..11

source

pub const fn rtm(&self) -> bool

Bits: 11..12

source

pub const fn with_rtm(self, value: bool) -> Self

Bits: 11..12

source

pub fn set_rtm(&mut self, value: bool)

Bits: 11..12

source

pub const fn rdt_m(&self) -> bool

Bits: 12..13

source

pub const fn with_rdt_m(self, value: bool) -> Self

Bits: 12..13

source

pub fn set_rdt_m(&mut self, value: bool)

Bits: 12..13

source

pub const fn dep_x87_fpu_save(&self) -> bool

Bits: 13..14

source

pub const fn with_dep_x87_fpu_save(self, value: bool) -> Self

Bits: 13..14

source

pub fn set_dep_x87_fpu_save(&mut self, value: bool)

Bits: 13..14

source

pub const fn mpx(&self) -> bool

Bits: 14..15

source

pub const fn with_mpx(self, value: bool) -> Self

Bits: 14..15

source

pub fn set_mpx(&mut self, value: bool)

Bits: 14..15

source

pub const fn rdt_a(&self) -> bool

Bits: 15..16

source

pub const fn with_rdt_a(self, value: bool) -> Self

Bits: 15..16

source

pub fn set_rdt_a(&mut self, value: bool)

Bits: 15..16

source

pub const fn avx512f(&self) -> bool

Bits: 16..17

source

pub const fn with_avx512f(self, value: bool) -> Self

Bits: 16..17

source

pub fn set_avx512f(&mut self, value: bool)

Bits: 16..17

source

pub const fn avx512dq(&self) -> bool

Bits: 17..18

source

pub const fn with_avx512dq(self, value: bool) -> Self

Bits: 17..18

source

pub fn set_avx512dq(&mut self, value: bool)

Bits: 17..18

source

pub const fn rd_seed(&self) -> bool

Bits: 18..19

source

pub const fn with_rd_seed(self, value: bool) -> Self

Bits: 18..19

source

pub fn set_rd_seed(&mut self, value: bool)

Bits: 18..19

source

pub const fn adx(&self) -> bool

Bits: 19..20

source

pub const fn with_adx(self, value: bool) -> Self

Bits: 19..20

source

pub fn set_adx(&mut self, value: bool)

Bits: 19..20

source

pub const fn smap(&self) -> bool

Bits: 20..21

source

pub const fn with_smap(self, value: bool) -> Self

Bits: 20..21

source

pub fn set_smap(&mut self, value: bool)

Bits: 20..21

source

pub const fn avx512_ifma(&self) -> bool

Bits: 21..22

source

pub const fn with_avx512_ifma(self, value: bool) -> Self

Bits: 21..22

source

pub fn set_avx512_ifma(&mut self, value: bool)

Bits: 21..22

source

pub const fn clflushopt(&self) -> bool

Bits: 23..24

source

pub const fn with_clflushopt(self, value: bool) -> Self

Bits: 23..24

source

pub fn set_clflushopt(&mut self, value: bool)

Bits: 23..24

source

pub const fn clwb(&self) -> bool

Bits: 24..25

source

pub const fn with_clwb(self, value: bool) -> Self

Bits: 24..25

source

pub fn set_clwb(&mut self, value: bool)

Bits: 24..25

source

pub const fn ipt(&self) -> bool

Bits: 25..26

source

pub const fn with_ipt(self, value: bool) -> Self

Bits: 25..26

source

pub fn set_ipt(&mut self, value: bool)

Bits: 25..26

source

pub const fn avx512cd(&self) -> bool

Bits: 28..29

source

pub const fn with_avx512cd(self, value: bool) -> Self

Bits: 28..29

source

pub fn set_avx512cd(&mut self, value: bool)

Bits: 28..29

source

pub const fn sha(&self) -> bool

Bits: 29..30

source

pub const fn with_sha(self, value: bool) -> Self

Bits: 29..30

source

pub fn set_sha(&mut self, value: bool)

Bits: 29..30

source

pub const fn avx512bw(&self) -> bool

Bits: 30..31

source

pub const fn with_avx512bw(self, value: bool) -> Self

Bits: 30..31

source

pub fn set_avx512bw(&mut self, value: bool)

Bits: 30..31

source

pub const fn avx512vl(&self) -> bool

Bits: 31..32

source

pub const fn with_avx512vl(self, value: bool) -> Self

Bits: 31..32

source

pub fn set_avx512vl(&mut self, value: bool)

Bits: 31..32

Trait Implementations§

source§

impl Clone for ExtendedFeatureSubleaf0Ebx

source§

fn clone(&self) -> ExtendedFeatureSubleaf0Ebx

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for ExtendedFeatureSubleaf0Ebx

source§

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

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

impl Default for ExtendedFeatureSubleaf0Ebx

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<ExtendedFeatureSubleaf0Ebx> for u32

source§

fn from(v: ExtendedFeatureSubleaf0Ebx) -> u32

Converts to this type from the input type.
source§

impl From<u32> for ExtendedFeatureSubleaf0Ebx

source§

fn from(v: u32) -> Self

Converts to this type from the input type.
source§

impl Copy for ExtendedFeatureSubleaf0Ebx

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

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

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

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

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

source§

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<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

source§

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

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

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

Performs the conversion.