Struct x86defs::cpuid::ExtendedVersionAndFeaturesEcx

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

Implementations§

source§

impl ExtendedVersionAndFeaturesEcx

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

Bits: 0..1

source

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

Bits: 0..1

source

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

Bits: 0..1

source

pub const fn cmp_legacy(&self) -> bool

Bits: 1..2

source

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

Bits: 1..2

source

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

Bits: 1..2

source

pub const fn svm(&self) -> bool

Bits: 2..3

source

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

Bits: 2..3

source

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

Bits: 2..3

source

pub const fn ext_apic_space(&self) -> bool

Bits: 3..4

source

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

Bits: 3..4

source

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

Bits: 3..4

source

pub const fn alt_mov_cr8(&self) -> bool

Bits: 4..5

source

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

Bits: 4..5

source

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

Bits: 4..5

source

pub const fn abm(&self) -> bool

Bits: 5..6

source

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

Bits: 5..6

source

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

Bits: 5..6

source

pub const fn sse4_a(&self) -> bool

Bits: 6..7

source

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

Bits: 6..7

source

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

Bits: 6..7

source

pub const fn mis_align_sse(&self) -> bool

Bits: 7..8

source

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

Bits: 7..8

source

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

Bits: 7..8

source

pub const fn prefetch(&self) -> bool

Bits: 8..9

source

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

Bits: 8..9

source

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

Bits: 8..9

source

pub const fn osvw(&self) -> bool

Bits: 9..10

source

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

Bits: 9..10

source

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

Bits: 9..10

source

pub const fn ibs(&self) -> bool

Bits: 10..11

source

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

Bits: 10..11

source

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

Bits: 10..11

source

pub const fn xop(&self) -> bool

Bits: 11..12

source

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

Bits: 11..12

source

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

Bits: 11..12

source

pub const fn skinit(&self) -> bool

Bits: 12..13

source

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

Bits: 12..13

source

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

Bits: 12..13

source

pub const fn wdt(&self) -> bool

Bits: 13..14

source

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

Bits: 13..14

source

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

Bits: 13..14

source

pub const fn lwp(&self) -> bool

Bits: 15..16

source

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

Bits: 15..16

source

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

Bits: 15..16

source

pub const fn fma4(&self) -> bool

Bits: 16..17

source

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

Bits: 16..17

source

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

Bits: 16..17

source

pub const fn node_id(&self) -> bool

Bits: 19..20

source

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

Bits: 19..20

source

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

Bits: 19..20

source

pub const fn topology_extensions(&self) -> bool

Bits: 22..23

source

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

Bits: 22..23

source

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

Bits: 22..23

source

pub const fn perf_ctr_ext_core(&self) -> bool

Bits: 23..24

source

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

Bits: 23..24

source

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

Bits: 23..24

source

pub const fn perf_ctr_ext_df(&self) -> bool

Bits: 24..25

source

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

Bits: 24..25

source

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

Bits: 24..25

source

pub const fn perf_ctr_ext_llc(&self) -> bool

Bits: 28..29

source

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

Bits: 28..29

source

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

Bits: 28..29

source

pub const fn monitor_x(&self) -> bool

Bits: 29..30

source

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

Bits: 29..30

source

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

Bits: 29..30

Trait Implementations§

source§

impl Clone for ExtendedVersionAndFeaturesEcx

source§

fn clone(&self) -> ExtendedVersionAndFeaturesEcx

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 ExtendedVersionAndFeaturesEcx

source§

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

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

impl Default for ExtendedVersionAndFeaturesEcx

source§

fn default() -> Self

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

impl From<ExtendedVersionAndFeaturesEcx> for u32

source§

fn from(v: ExtendedVersionAndFeaturesEcx) -> u32

Converts to this type from the input type.
source§

impl From<u32> for ExtendedVersionAndFeaturesEcx

source§

fn from(v: u32) -> Self

Converts to this type from the input type.
source§

impl Copy for ExtendedVersionAndFeaturesEcx

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.