pub struct XCr0Flags { /* fields omitted */ }
Expand description
Configuration flags of the XCr0 register.
For MPX, BNDREG
and BNDCSR
must be set/unset simultaneously.
For AVX-512, OPMASK
, ZMM_HI256
, and HI16_ZMM
must be set/unset simultaneously.
Enables using the x87 FPU state
with XSAVE
/XRSTOR
.
Must be set.
Enables using MXCSR and the XMM registers
with XSAVE
/XRSTOR
.
Must be set if YMM
is set.
Enables AVX instructions and using the upper halves of the YMM registers
with XSAVE
/XRSTOR
.
Enables MPX instructions and using the BND0-BND3 bound registers
with XSAVE
/XRSTOR
(Intel Only).
Enables MPX instructions and using the BNDCFGU and BNDSTATUS registers
with XSAVE
/XRSTOR
(Intel Only).
Enables AVX-512 instructions and using the K0-K7 mask registers
with XSAVE
/XRSTOR
(Intel Only).
Enables AVX-512 instructions and using the upper halves of the lower ZMM registers
with XSAVE
/XRSTOR
(Intel Only).
Enables AVX-512 instructions and using the upper ZMM registers
with XSAVE
/XRSTOR
(Intel Only).
Enables using the PKRU register
with XSAVE
/XRSTOR
.
Enables Lightweight Profiling extensions and managing LWP state
with XSAVE
/XRSTOR
(AMD Only).
Returns an empty set of flags
Returns the set containing all flags.
pub const fn bits(&self) -> u64
Returns the raw value of the flags currently stored.
Convert from underlying bit representation, unless that
representation contains bits that do not correspond to a flag.
Convert from underlying bit representation, dropping any bits
that do not correspond to flags.
Convert from underlying bit representation, preserving all
bits (even those not corresponding to a defined flag).
Returns true
if no flags are currently stored.
pub const fn is_all(&self) -> bool
Returns true
if all flags are currently set.
Returns true
if there are flags common to both self
and other
.
Returns true
all of the flags in other
are contained within self
.
Inserts the specified flags in-place.
Removes the specified flags in-place.
Toggles the specified flags in-place.
Inserts or removes the specified flags depending on the passed value.
Formats the value using the given formatter.
Returns the intersection between the two sets of flags.
The resulting type after applying the &
operator.
Disables all flags disabled in the set.
Returns the union of the two sets of flags.
The resulting type after applying the |
operator.
Returns the left flags, but with all the right flags toggled.
The resulting type after applying the ^
operator.
Toggles the set of flags.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Extends a collection with the contents of an iterator. Read more
🔬 This is a nightly-only experimental API. (extend_one
)
Extends a collection with exactly one element.
🔬 This is a nightly-only experimental API. (extend_one
)
Reserves capacity in a collection for the given number of additional elements. Read more
Formats the value using the given formatter.
Returns the complement of this set of flags.
The resulting type after applying the !
operator.
Formats the value using the given formatter.
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
Restrict a value to a certain interval. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
Returns the set difference of the two sets of flags.
The resulting type after applying the -
operator.
Disables all flags enabled in the set.
Formats the value using the given formatter.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.