Struct x86defs::cpuid::VersionAndFeaturesEdx

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

Implementations§

source§

impl VersionAndFeaturesEdx

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

Bits: 0..1

source

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

Bits: 0..1

source

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

Bits: 0..1

source

pub const fn vme(&self) -> bool

Bits: 1..2

source

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

Bits: 1..2

source

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

Bits: 1..2

source

pub const fn de(&self) -> bool

Bits: 2..3

source

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

Bits: 2..3

source

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

Bits: 2..3

source

pub const fn pse(&self) -> bool

Bits: 3..4

source

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

Bits: 3..4

source

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

Bits: 3..4

source

pub const fn tsc(&self) -> bool

Bits: 4..5

source

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

Bits: 4..5

source

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

Bits: 4..5

source

pub const fn msr(&self) -> bool

Bits: 5..6

source

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

Bits: 5..6

source

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

Bits: 5..6

source

pub const fn pae(&self) -> bool

Bits: 6..7

source

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

Bits: 6..7

source

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

Bits: 6..7

source

pub const fn mce(&self) -> bool

Bits: 7..8

source

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

Bits: 7..8

source

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

Bits: 7..8

source

pub const fn cx8(&self) -> bool

Bits: 8..9

source

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

Bits: 8..9

source

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

Bits: 8..9

source

pub const fn apic(&self) -> bool

Bits: 9..10

source

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

Bits: 9..10

source

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

Bits: 9..10

source

pub const fn sep(&self) -> bool

Bits: 11..12

source

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

Bits: 11..12

source

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

Bits: 11..12

source

pub const fn mtrr(&self) -> bool

Bits: 12..13

source

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

Bits: 12..13

source

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

Bits: 12..13

source

pub const fn pge(&self) -> bool

Bits: 13..14

source

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

Bits: 13..14

source

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

Bits: 13..14

source

pub const fn mca(&self) -> bool

Bits: 14..15

source

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

Bits: 14..15

source

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

Bits: 14..15

source

pub const fn cmov(&self) -> bool

Bits: 15..16

source

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

Bits: 15..16

source

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

Bits: 15..16

source

pub const fn pat(&self) -> bool

Bits: 16..17

source

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

Bits: 16..17

source

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

Bits: 16..17

source

pub const fn pse36(&self) -> bool

Bits: 17..18

source

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

Bits: 17..18

source

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

Bits: 17..18

source

pub const fn psn(&self) -> bool

Bits: 18..19

source

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

Bits: 18..19

source

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

Bits: 18..19

source

pub const fn cl_fsh(&self) -> bool

Bits: 19..20

source

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

Bits: 19..20

source

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

Bits: 19..20

source

pub const fn ds(&self) -> bool

Bits: 21..22

source

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

Bits: 21..22

source

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

Bits: 21..22

source

pub const fn acpi(&self) -> bool

Bits: 22..23

source

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

Bits: 22..23

source

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

Bits: 22..23

source

pub const fn mmx(&self) -> bool

Bits: 23..24

source

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

Bits: 23..24

source

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

Bits: 23..24

source

pub const fn fxsr(&self) -> bool

Bits: 24..25

source

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

Bits: 24..25

source

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

Bits: 24..25

source

pub const fn sse(&self) -> bool

Bits: 25..26

source

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

Bits: 25..26

source

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

Bits: 25..26

source

pub const fn sse2(&self) -> bool

Bits: 26..27

source

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

Bits: 26..27

source

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

Bits: 26..27

source

pub const fn ss(&self) -> bool

Bits: 27..28

source

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

Bits: 27..28

source

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

Bits: 27..28

source

pub const fn mt_per_socket(&self) -> bool

Bits: 28..29

source

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

Bits: 28..29

source

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

Bits: 28..29

source

pub const fn tm(&self) -> bool

Bits: 29..30

source

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

Bits: 29..30

source

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

Bits: 29..30

source

pub const fn pbe(&self) -> bool

Bits: 31..32

source

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

Bits: 31..32

source

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

Bits: 31..32

Trait Implementations§

source§

impl Clone for VersionAndFeaturesEdx

source§

fn clone(&self) -> VersionAndFeaturesEdx

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 VersionAndFeaturesEdx

source§

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

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

impl Default for VersionAndFeaturesEdx

source§

fn default() -> Self

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

impl From<VersionAndFeaturesEdx> for u32

source§

fn from(v: VersionAndFeaturesEdx) -> u32

Converts to this type from the input type.
source§

impl From<u32> for VersionAndFeaturesEdx

source§

fn from(v: u32) -> Self

Converts to this type from the input type.
source§

impl Copy for VersionAndFeaturesEdx

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.