Struct x86defs::cpuid::ExtendedVersionAndFeaturesEdx

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

Implementations§

source§

impl ExtendedVersionAndFeaturesEdx

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

Bits: 11..12

source

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

Bits: 11..12

source

pub fn set_syscall(&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 no_execute(&self) -> bool

Bits: 20..21

source

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

Bits: 20..21

source

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

Bits: 20..21

source

pub const fn amd_mmx(&self) -> bool

Bits: 22..23

source

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

Bits: 22..23

source

pub fn set_amd_mmx(&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 fast_fxsr(&self) -> bool

Bits: 25..26

source

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

Bits: 25..26

source

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

Bits: 25..26

source

pub const fn page_1gb(&self) -> bool

Bits: 26..27

source

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

Bits: 26..27

source

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

Bits: 26..27

source

pub const fn rdtscp(&self) -> bool

Bits: 27..28

source

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

Bits: 27..28

source

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

Bits: 27..28

source

pub const fn long_mode(&self) -> bool

Bits: 29..30

source

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

Bits: 29..30

source

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

Bits: 29..30

source

pub const fn extended3d_now(&self) -> bool

Bits: 30..31

source

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

Bits: 30..31

source

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

Bits: 30..31

source

pub const fn amd3d_now(&self) -> bool

Bits: 31..32

source

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

Bits: 31..32

source

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

Bits: 31..32

Trait Implementations§

source§

impl Clone for ExtendedVersionAndFeaturesEdx

source§

fn clone(&self) -> ExtendedVersionAndFeaturesEdx

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 ExtendedVersionAndFeaturesEdx

source§

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

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

impl Default for ExtendedVersionAndFeaturesEdx

source§

fn default() -> Self

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

impl From<ExtendedVersionAndFeaturesEdx> for u32

source§

fn from(v: ExtendedVersionAndFeaturesEdx) -> u32

Converts to this type from the input type.
source§

impl From<u32> for ExtendedVersionAndFeaturesEdx

source§

fn from(v: u32) -> Self

Converts to this type from the input type.
source§

impl Copy for ExtendedVersionAndFeaturesEdx

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.