pub struct CpuDomainId(/* private fields */);Expand description
Caller-stable identity for a CPU execution domain.
Domain IDs are metadata supplied by the caller or execution coordinator; creating an ID does not allocate a process-global identity.
§Examples
use tenferro_tensor::CpuDomainId;
let domain = CpuDomainId::new(17);
assert_eq!(domain.as_u64(), 17);Implementations§
Trait Implementations§
Source§impl Clone for CpuDomainId
impl Clone for CpuDomainId
Source§fn clone(&self) -> CpuDomainId
fn clone(&self) -> CpuDomainId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CpuDomainId
impl Debug for CpuDomainId
Source§impl Hash for CpuDomainId
impl Hash for CpuDomainId
Source§impl Ord for CpuDomainId
impl Ord for CpuDomainId
Source§fn cmp(&self, other: &CpuDomainId) -> Ordering
fn cmp(&self, other: &CpuDomainId) -> Ordering
1.21.0 (const: unstable) · 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 CpuDomainId
impl PartialEq for CpuDomainId
Source§fn eq(&self, other: &CpuDomainId) -> bool
fn eq(&self, other: &CpuDomainId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CpuDomainId
impl PartialOrd for CpuDomainId
impl Copy for CpuDomainId
impl Eq for CpuDomainId
impl StructuralPartialEq for CpuDomainId
Auto Trait Implementations§
impl Freeze for CpuDomainId
impl RefUnwindSafe for CpuDomainId
impl Send for CpuDomainId
impl Sync for CpuDomainId
impl Unpin for CpuDomainId
impl UnsafeUnpin for CpuDomainId
impl UnwindSafe for CpuDomainId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more