[−][src]Struct x86_64_xsave::state_components::StateComponentSizing
This structure is not valid for state components 0
(x87
state) or 1
(SSE
state).
Fields
uncompacted_byte_offset: usize
Byte offset from base address of XSaveArea
if uncompacted.
size: usize
Size of state component in bytes; never zero if obtained via StateComponent.sizing()
, SizingQueryableUserStateComponent.sizing()
, SupervisorStateComponent.sizing()
or StateComponentSizing::sizing()
.
supported_in: SupportedIn
Which register supports this state component?
requires_alignment_if_compacted: bool
If compacted, does this state component require alignment to 64 bytes?
- If true, this extended state component is located on the next 64-byte boundary following the preceding state component.
- If false, it is located immediately following the preceding state component.
Methods
impl StateComponentSizing
[src]
pub fn sizing(bit: u8) -> Option<StateComponentSizing>
[src]
Query size using CPUID
of the state component for bit
.
bit
must be between 2 and 62 inclusive.
Trait Implementations
impl Clone for StateComponentSizing
[src]
fn clone(&self) -> StateComponentSizing
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<StateComponentSizing> for StateComponentSizing
[src]
fn eq(&self, other: &StateComponentSizing) -> bool
[src]
fn ne(&self, other: &StateComponentSizing) -> bool
[src]
impl PartialOrd<StateComponentSizing> for StateComponentSizing
[src]
fn partial_cmp(&self, other: &StateComponentSizing) -> Option<Ordering>
[src]
fn lt(&self, other: &StateComponentSizing) -> bool
[src]
fn le(&self, other: &StateComponentSizing) -> bool
[src]
fn gt(&self, other: &StateComponentSizing) -> bool
[src]
fn ge(&self, other: &StateComponentSizing) -> bool
[src]
impl Eq for StateComponentSizing
[src]
impl Ord for StateComponentSizing
[src]
fn cmp(&self, other: &StateComponentSizing) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl Copy for StateComponentSizing
[src]
impl Debug for StateComponentSizing
[src]
impl Hash for StateComponentSizing
[src]
Auto Trait Implementations
impl Send for StateComponentSizing
impl Sync for StateComponentSizing
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,