pub struct BackingIdentity(/* private fields */);Expand description
BackingIdentity
Identity of a physical backing allocation, shared by all of its wrappers. This is host custody metadata, not a virtual memory ID or durable record.
Implementations§
Source§impl BackingIdentity
impl BackingIdentity
Sourcepub fn of_rc<T: ?Sized>(backing: &Rc<T>) -> Self
pub fn of_rc<T: ?Sized>(backing: &Rc<T>) -> Self
Identify an Rc-owned backing. Its allocation must remain alive through every runtime/handle using this identity. Identify the underlying backing, not a newly allocated wrapper or an address inside a growable byte buffer.
Sourcepub fn of_arc<T: ?Sized>(backing: &Arc<T>) -> Self
pub fn of_arc<T: ?Sized>(backing: &Arc<T>) -> Self
Identify an Arc-owned backing under the same contract as Self::of_rc.
Trait Implementations§
Source§impl Clone for BackingIdentity
impl Clone for BackingIdentity
impl Copy for BackingIdentity
Source§impl Debug for BackingIdentity
impl Debug for BackingIdentity
impl Eq for BackingIdentity
Source§impl Ord for BackingIdentity
impl Ord for BackingIdentity
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 BackingIdentity
impl PartialEq for BackingIdentity
Source§impl PartialOrd for BackingIdentity
impl PartialOrd for BackingIdentity
impl StructuralPartialEq for BackingIdentity
Auto Trait Implementations§
impl Freeze for BackingIdentity
impl RefUnwindSafe for BackingIdentity
impl Send for BackingIdentity
impl Sync for BackingIdentity
impl Unpin for BackingIdentity
impl UnsafeUnpin for BackingIdentity
impl UnwindSafe for BackingIdentity
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