pub struct CpuId(/* private fields */);
Expand description
A unique identifier for a CPU core.
A CpuId
is a known-valid value that is guaranteed to correspond
to a single CPU that actually exists on the current system.
Implementations§
Trait Implementations§
source§impl Ord for CpuId
impl Ord for CpuId
source§impl PartialEq<CpuId> for CpuId
impl PartialEq<CpuId> for CpuId
source§impl PartialOrd<CpuId> for CpuId
impl PartialOrd<CpuId> for CpuId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moreimpl Copy for CpuId
impl Eq for CpuId
impl StructuralEq for CpuId
impl StructuralPartialEq for CpuId
Auto Trait Implementations§
impl RefUnwindSafe for CpuId
impl Send for CpuId
impl Sync for CpuId
impl Unpin for CpuId
impl UnwindSafe for CpuId
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
Mutably borrows from an owned value. Read more