pub struct ArcByPtr<T: ?Sized> { /* private fields */ }
Expand description
A Container for comparing and hashing reference counted values using their pointers.
Implementations§
Source§impl<T: ?Sized> ArcByPtr<T>
impl<T: ?Sized> ArcByPtr<T>
pub fn new(contents: &Arc<T>) -> Self
pub fn from_weak(arc_contents: &Weak<T>) -> Option<Self>
pub fn from_clone(contents: &Arc<T>) -> Self
pub fn contents(&self) -> Arc<T>
pub fn contents_ref(&self) -> &Arc<T>
pub fn downgrade_contents(&self) -> Weak<T>
pub fn downgrade(&self) -> SyncWeakByPtr<T>
pub fn take(self) -> Arc<T>
Trait Implementations§
Source§impl<T: ?Sized> Ord for ArcByPtr<T>
impl<T: ?Sized> Ord for ArcByPtr<T>
Source§impl<T: ?Sized> PartialOrd for ArcByPtr<T>
impl<T: ?Sized> PartialOrd for ArcByPtr<T>
impl<T: ?Sized> Eq for ArcByPtr<T>
Auto Trait Implementations§
impl<T> Freeze for ArcByPtr<T>where
T: ?Sized,
impl<T> RefUnwindSafe for ArcByPtr<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for ArcByPtr<T>
impl<T> Sync for ArcByPtr<T>
impl<T> Unpin for ArcByPtr<T>where
T: ?Sized,
impl<T> UnwindSafe for ArcByPtr<T>where
T: RefUnwindSafe + ?Sized,
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