x86defs::cpuid

Struct 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 u8)

🔬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.