Struct raw_cpuid::ExtendedState
source · [−]pub struct ExtendedState {
pub subleaf: u32,
/* private fields */
}
Fields
subleaf: u32
Implementations
sourceimpl ExtendedState
impl ExtendedState
sourcepub fn size(&self) -> u32
pub fn size(&self) -> u32
The size in bytes (from the offset specified in EBX) of the save area for an extended state feature associated with a valid sub-leaf index, n. This field reports 0 if the sub-leaf index, n, is invalid.
sourcepub fn offset(&self) -> u32
pub fn offset(&self) -> u32
The offset in bytes of this extended state components save area from the beginning of the XSAVE/XRSTOR area.
sourcepub fn is_in_ia32_xss(&self) -> bool
pub fn is_in_ia32_xss(&self) -> bool
True if the bit n (corresponding to the sub-leaf index) is supported in the IA32_XSS MSR;
sourcepub fn is_in_xcr0(&self) -> bool
pub fn is_in_xcr0(&self) -> bool
True if bit n is supported in XCR0.
sourcepub fn is_compacted_format(&self) -> bool
pub fn is_compacted_format(&self) -> bool
Returns true when the compacted format of an XSAVE area is used, this extended state component located on the next 64-byte boundary following the preceding state component (otherwise, it is located immediately following the preceding state component).
Trait Implementations
sourceimpl Debug for ExtendedState
impl Debug for ExtendedState
sourceimpl Default for ExtendedState
impl Default for ExtendedState
sourcefn default() -> ExtendedState
fn default() -> ExtendedState
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ExtendedState
impl Send for ExtendedState
impl Sync for ExtendedState
impl Unpin for ExtendedState
impl UnwindSafe for ExtendedState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more