pub struct MemoryDomain(pub usize);Expand description
A position in the topology’s array of memory domains, in [0, memory_domains_count()).
See ComputeDomain for why these are separate types.
Tuple Fields§
§0: usizeImplementations§
Trait Implementations§
Source§impl Clone for MemoryDomain
impl Clone for MemoryDomain
impl Copy for MemoryDomain
Source§impl Debug for MemoryDomain
impl Debug for MemoryDomain
impl Eq for MemoryDomain
Source§impl Hash for MemoryDomain
impl Hash for MemoryDomain
Source§impl Ord for MemoryDomain
impl Ord for MemoryDomain
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MemoryDomain
impl PartialEq for MemoryDomain
Source§impl PartialOrd for MemoryDomain
impl PartialOrd for MemoryDomain
impl StructuralPartialEq for MemoryDomain
Auto Trait Implementations§
impl Freeze for MemoryDomain
impl RefUnwindSafe for MemoryDomain
impl Send for MemoryDomain
impl Sync for MemoryDomain
impl Unpin for MemoryDomain
impl UnsafeUnpin for MemoryDomain
impl UnwindSafe for MemoryDomain
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