pub struct CpuidResult {
pub eax: u32,
pub ebx: u32,
pub ecx: u32,
pub edx: u32,
}Available on x86 only.
Expand description
Result of the cpuid instruction.
Fields§
§eax: u32EAX register.
ebx: u32EBX register.
ecx: u32ECX register.
edx: u32EDX register.
Trait Implementations§
1.27.0 · Source§impl Clone for CpuidResult
Available on x86 or x86-64 only.
impl Clone for CpuidResult
Available on x86 or x86-64 only.
Source§fn clone(&self) -> CpuidResult
fn clone(&self) -> CpuidResult
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)where
Self:,
fn clone_from(&mut self, source: &Self)where
Self:,
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Performs copy-assignment from
source. Read more1.27.0 · Source§impl Debug for CpuidResult
Available on x86 or x86-64 only.
impl Debug for CpuidResult
Available on x86 or x86-64 only.
1.27.0 · Source§impl Ord for CpuidResult
Available on x86 or x86-64 only.
impl Ord for CpuidResult
Available on x86 or x86-64 only.
Source§fn cmp(&self, other: &CpuidResult) -> Ordering
fn cmp(&self, other: &CpuidResult) -> Ordering
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Compares and returns the maximum of two values. Read more
1.27.0 · Source§impl PartialEq for CpuidResult
Available on x86 or x86-64 only.
impl PartialEq for CpuidResult
Available on x86 or x86-64 only.
Source§fn eq(&self, other: &CpuidResult) -> bool
fn eq(&self, other: &CpuidResult) -> bool
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Tests for
self and other values to be equal, and is used by ==.1.27.0 · Source§impl PartialOrd for CpuidResult
Available on x86 or x86-64 only.
impl PartialOrd for CpuidResult
Available on x86 or x86-64 only.
Source§fn partial_cmp(&self, other: &CpuidResult) -> Option<Ordering>
fn partial_cmp(&self, other: &CpuidResult) -> Option<Ordering>
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
1.0.0 · Source§fn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
1.0.0 · Source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
impl Copy for CpuidResult
Available on x86 or x86-64 only.
impl Eq for CpuidResult
Available on x86 or x86-64 only.
impl StructuralPartialEq for CpuidResult
Available on x86 or x86-64 only.
Auto Trait Implementations§
impl Freeze for CpuidResult
impl RefUnwindSafe for CpuidResult
impl Send for CpuidResult
impl Sync for CpuidResult
impl Unpin for CpuidResult
impl UnsafeUnpin for CpuidResult
impl UnwindSafe for CpuidResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Mutably borrows from an owned value. Read more