pub struct AllocationDomainId(/* private fields */);Expand description
Identity of a backend-owned allocation domain.
Domains let cooperating backends accept shared allocations without treating another context’s physically similar buffer as compatible.
§Examples
use tenferro_tensor::AllocationDomainId;
assert_ne!(AllocationDomainId::fresh(), AllocationDomainId::fresh());Implementations§
Trait Implementations§
Source§impl Clone for AllocationDomainId
impl Clone for AllocationDomainId
Source§fn clone(&self) -> AllocationDomainId
fn clone(&self) -> AllocationDomainId
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 AllocationDomainId
impl Debug for AllocationDomainId
Source§impl Hash for AllocationDomainId
impl Hash for AllocationDomainId
Source§impl Ord for AllocationDomainId
impl Ord for AllocationDomainId
Source§fn cmp(&self, other: &AllocationDomainId) -> Ordering
fn cmp(&self, other: &AllocationDomainId) -> 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 AllocationDomainId
impl PartialEq for AllocationDomainId
Source§fn eq(&self, other: &AllocationDomainId) -> bool
fn eq(&self, other: &AllocationDomainId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AllocationDomainId
impl PartialOrd for AllocationDomainId
impl Copy for AllocationDomainId
impl Eq for AllocationDomainId
impl StructuralPartialEq for AllocationDomainId
Auto Trait Implementations§
impl Freeze for AllocationDomainId
impl RefUnwindSafe for AllocationDomainId
impl Send for AllocationDomainId
impl Sync for AllocationDomainId
impl Unpin for AllocationDomainId
impl UnsafeUnpin for AllocationDomainId
impl UnwindSafe for AllocationDomainId
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