pub struct LogicalCoreId(/* private fields */);
Expand description
An opaque type that represents a CPU logical core.
Implementations§
Source§impl LogicalCoreId
impl LogicalCoreId
pub const fn new(core_id: u32) -> LogicalCoreId
Trait Implementations§
Source§impl Clone for LogicalCoreId
impl Clone for LogicalCoreId
Source§fn clone(&self) -> LogicalCoreId
fn clone(&self) -> LogicalCoreId
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 LogicalCoreId
impl Debug for LogicalCoreId
Source§impl<'de> Deserialize<'de> for LogicalCoreId
impl<'de> Deserialize<'de> for LogicalCoreId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LogicalCoreId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LogicalCoreId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for LogicalCoreId
impl Display for LogicalCoreId
Source§impl From<u32> for LogicalCoreId
impl From<u32> for LogicalCoreId
Source§fn from(v: u32) -> LogicalCoreId
fn from(v: u32) -> LogicalCoreId
Converts to this type from the input type.
Source§impl Hash for LogicalCoreId
impl Hash for LogicalCoreId
Source§impl Ord for LogicalCoreId
impl Ord for LogicalCoreId
Source§fn cmp(&self, other: &LogicalCoreId) -> Ordering
fn cmp(&self, other: &LogicalCoreId) -> 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 LogicalCoreId
impl PartialEq for LogicalCoreId
Source§impl PartialOrd for LogicalCoreId
impl PartialOrd for LogicalCoreId
Source§impl Serialize for LogicalCoreId
impl Serialize for LogicalCoreId
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 LogicalCoreId
impl Eq for LogicalCoreId
impl StructuralPartialEq for LogicalCoreId
Auto Trait Implementations§
impl Freeze for LogicalCoreId
impl RefUnwindSafe for LogicalCoreId
impl Send for LogicalCoreId
impl Sync for LogicalCoreId
impl Unpin for LogicalCoreId
impl UnwindSafe for LogicalCoreId
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