pub struct PhysicalCoreId(/* private fields */);
Expand description
An opaque type that represents a CPU physical core.
Implementations§
Source§impl PhysicalCoreId
impl PhysicalCoreId
pub const fn new(core_id: u32) -> PhysicalCoreId
Trait Implementations§
Source§impl Clone for PhysicalCoreId
impl Clone for PhysicalCoreId
Source§fn clone(&self) -> PhysicalCoreId
fn clone(&self) -> PhysicalCoreId
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PhysicalCoreId
impl Debug for PhysicalCoreId
Source§impl<'de> Deserialize<'de> for PhysicalCoreId
impl<'de> Deserialize<'de> for PhysicalCoreId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PhysicalCoreId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PhysicalCoreId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PhysicalCoreId
impl Display for PhysicalCoreId
Source§impl From<u32> for PhysicalCoreId
impl From<u32> for PhysicalCoreId
Source§fn from(v: u32) -> PhysicalCoreId
fn from(v: u32) -> PhysicalCoreId
Converts to this type from the input type.
Source§impl Hash for PhysicalCoreId
impl Hash for PhysicalCoreId
Source§impl Ord for PhysicalCoreId
impl Ord for PhysicalCoreId
Source§fn cmp(&self, other: &PhysicalCoreId) -> Ordering
fn cmp(&self, other: &PhysicalCoreId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PhysicalCoreId
impl PartialEq for PhysicalCoreId
Source§impl PartialOrd for PhysicalCoreId
impl PartialOrd for PhysicalCoreId
Source§impl Serialize for PhysicalCoreId
impl Serialize for PhysicalCoreId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for PhysicalCoreId
impl Eq for PhysicalCoreId
impl StructuralPartialEq for PhysicalCoreId
Auto Trait Implementations§
impl Freeze for PhysicalCoreId
impl RefUnwindSafe for PhysicalCoreId
impl Send for PhysicalCoreId
impl Sync for PhysicalCoreId
impl Unpin for PhysicalCoreId
impl UnwindSafe for PhysicalCoreId
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