Struct x86_64::registers::xcontrol::XCr0Flags[][src]

pub struct XCr0Flags { /* fields omitted */ }

Configuration flags of the XCr0 register.

Implementations

impl XCr0Flags[src]

pub const X87: XCr0Flags[src]

Enables x87 FPU

pub const SSE: XCr0Flags[src]

Enables 128-bit (legacy) SSE Must be set to enable AVX and YMM

pub const YMM: XCr0Flags[src]

Enables 256-bit SSE Must be set to enable AVX

pub const MPK: XCr0Flags[src]

When set, PKRU state management is supported by ZSAVE/XRSTOR

pub const LWP: XCr0Flags[src]

When set the Lightweight Profiling extensions are enabled

pub const fn empty() -> XCr0Flags[src]

Returns an empty set of flags

pub const fn all() -> XCr0Flags[src]

Returns the set containing all flags.

pub const fn bits(&self) -> u64[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u64) -> Option<XCr0Flags>[src]

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

pub const fn from_bits_truncate(bits: u64) -> XCr0Flags[src]

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub const unsafe fn from_bits_unchecked(bits: u64) -> XCr0Flags[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub const fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub const fn intersects(&self, other: XCr0Flags) -> bool[src]

Returns true if there are flags common to both self and other.

pub const fn contains(&self, other: XCr0Flags) -> bool[src]

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: XCr0Flags)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: XCr0Flags)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: XCr0Flags)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: XCr0Flags, value: bool)[src]

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Binary for XCr0Flags[src]

impl BitAnd<XCr0Flags> for XCr0Flags[src]

type Output = XCr0Flags

The resulting type after applying the & operator.

fn bitand(self, other: XCr0Flags) -> XCr0Flags[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<XCr0Flags> for XCr0Flags[src]

fn bitand_assign(&mut self, other: XCr0Flags)[src]

Disables all flags disabled in the set.

impl BitOr<XCr0Flags> for XCr0Flags[src]

type Output = XCr0Flags

The resulting type after applying the | operator.

fn bitor(self, other: XCr0Flags) -> XCr0Flags[src]

Returns the union of the two sets of flags.

impl BitOrAssign<XCr0Flags> for XCr0Flags[src]

fn bitor_assign(&mut self, other: XCr0Flags)[src]

Adds the set of flags.

impl BitXor<XCr0Flags> for XCr0Flags[src]

type Output = XCr0Flags

The resulting type after applying the ^ operator.

fn bitxor(self, other: XCr0Flags) -> XCr0Flags[src]

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign<XCr0Flags> for XCr0Flags[src]

fn bitxor_assign(&mut self, other: XCr0Flags)[src]

Toggles the set of flags.

impl Clone for XCr0Flags[src]

impl Copy for XCr0Flags[src]

impl Debug for XCr0Flags[src]

impl Eq for XCr0Flags[src]

impl Extend<XCr0Flags> for XCr0Flags[src]

impl FromIterator<XCr0Flags> for XCr0Flags[src]

impl Hash for XCr0Flags[src]

impl LowerHex for XCr0Flags[src]

impl Not for XCr0Flags[src]

type Output = XCr0Flags

The resulting type after applying the ! operator.

fn not(self) -> XCr0Flags[src]

Returns the complement of this set of flags.

impl Octal for XCr0Flags[src]

impl Ord for XCr0Flags[src]

impl PartialEq<XCr0Flags> for XCr0Flags[src]

impl PartialOrd<XCr0Flags> for XCr0Flags[src]

impl StructuralEq for XCr0Flags[src]

impl StructuralPartialEq for XCr0Flags[src]

impl Sub<XCr0Flags> for XCr0Flags[src]

type Output = XCr0Flags

The resulting type after applying the - operator.

fn sub(self, other: XCr0Flags) -> XCr0Flags[src]

Returns the set difference of the two sets of flags.

impl SubAssign<XCr0Flags> for XCr0Flags[src]

fn sub_assign(&mut self, other: XCr0Flags)[src]

Disables all flags enabled in the set.

impl UpperHex for XCr0Flags[src]

Auto Trait Implementations

impl Send for XCr0Flags

impl Sync for XCr0Flags

impl Unpin for XCr0Flags

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.