Struct x86defs::cpuid::VersionAndFeaturesEcx

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

Implementations§

source§

impl VersionAndFeaturesEcx

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

Bits: 0..1

source

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

Bits: 0..1

source

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

Bits: 0..1

source

pub const fn pclmulqdq(&self) -> bool

Bits: 1..2

source

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

Bits: 1..2

source

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

Bits: 1..2

source

pub const fn dtes64(&self) -> bool

Bits: 2..3

source

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

Bits: 2..3

source

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

Bits: 2..3

source

pub const fn monitor(&self) -> bool

Bits: 3..4

source

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

Bits: 3..4

source

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

Bits: 3..4

source

pub const fn cpl_ds(&self) -> bool

Bits: 4..5

source

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

Bits: 4..5

source

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

Bits: 4..5

source

pub const fn vmx(&self) -> bool

Bits: 5..6

source

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

Bits: 5..6

source

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

Bits: 5..6

source

pub const fn smx(&self) -> bool

Bits: 6..7

source

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

Bits: 6..7

source

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

Bits: 6..7

source

pub const fn est(&self) -> bool

Bits: 7..8

source

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

Bits: 7..8

source

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

Bits: 7..8

source

pub const fn tm2(&self) -> bool

Bits: 8..9

source

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

Bits: 8..9

source

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

Bits: 8..9

source

pub const fn ssse3(&self) -> bool

Bits: 9..10

source

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

Bits: 9..10

source

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

Bits: 9..10

source

pub const fn cnxt_id(&self) -> bool

Bits: 10..11

source

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

Bits: 10..11

source

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

Bits: 10..11

source

pub const fn seg_limit64_bit(&self) -> bool

Bits: 11..12

source

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

Bits: 11..12

source

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

Bits: 11..12

source

pub const fn fma(&self) -> bool

Bits: 12..13

source

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

Bits: 12..13

source

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

Bits: 12..13

source

pub const fn cx16(&self) -> bool

Bits: 13..14

source

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

Bits: 13..14

source

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

Bits: 13..14

source

pub const fn xtpr(&self) -> bool

Bits: 14..15

source

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

Bits: 14..15

source

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

Bits: 14..15

source

pub const fn pdcm(&self) -> bool

Bits: 15..16

source

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

Bits: 15..16

source

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

Bits: 15..16

source

pub const fn pcid(&self) -> bool

Bits: 17..18

source

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

Bits: 17..18

source

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

Bits: 17..18

source

pub const fn dca(&self) -> bool

Bits: 18..19

source

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

Bits: 18..19

source

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

Bits: 18..19

source

pub const fn sse4_1(&self) -> bool

Bits: 19..20

source

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

Bits: 19..20

source

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

Bits: 19..20

source

pub const fn sse4_2(&self) -> bool

Bits: 20..21

source

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

Bits: 20..21

source

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

Bits: 20..21

source

pub const fn x2_apic(&self) -> bool

Bits: 21..22

source

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

Bits: 21..22

source

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

Bits: 21..22

source

pub const fn movbe(&self) -> bool

Bits: 22..23

source

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

Bits: 22..23

source

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

Bits: 22..23

source

pub const fn pop_cnt(&self) -> bool

Bits: 23..24

source

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

Bits: 23..24

source

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

Bits: 23..24

source

pub const fn tsc_deadline_tmr(&self) -> bool

Bits: 24..25

source

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

Bits: 24..25

source

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

Bits: 24..25

source

pub const fn aes(&self) -> bool

Bits: 25..26

source

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

Bits: 25..26

source

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

Bits: 25..26

source

pub const fn xsave(&self) -> bool

Bits: 26..27

source

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

Bits: 26..27

source

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

Bits: 26..27

source

pub const fn os_xsave(&self) -> bool

Bits: 27..28

source

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

Bits: 27..28

source

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

Bits: 27..28

source

pub const fn avx(&self) -> bool

Bits: 28..29

source

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

Bits: 28..29

source

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

Bits: 28..29

source

pub const fn f16c(&self) -> bool

Bits: 29..30

source

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

Bits: 29..30

source

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

Bits: 29..30

source

pub const fn rd_rand(&self) -> bool

Bits: 30..31

source

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

Bits: 30..31

source

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

Bits: 30..31

source

pub const fn hypervisor_present(&self) -> bool

Bits: 31..32

source

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

Bits: 31..32

source

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

Bits: 31..32

Trait Implementations§

source§

impl Clone for VersionAndFeaturesEcx

source§

fn clone(&self) -> VersionAndFeaturesEcx

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 VersionAndFeaturesEcx

source§

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

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

impl Default for VersionAndFeaturesEcx

source§

fn default() -> Self

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

impl From<VersionAndFeaturesEcx> for u32

source§

fn from(v: VersionAndFeaturesEcx) -> u32

Converts to this type from the input type.
source§

impl From<u32> for VersionAndFeaturesEcx

source§

fn from(v: u32) -> Self

Converts to this type from the input type.
source§

impl Copy for VersionAndFeaturesEcx

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.