pub struct Nr<T: ?Sized>(/* private fields */);
Expand description
Strong reference to node.
Implementations§
Source§impl<T: ?Sized> Nr<T>
impl<T: ?Sized> Nr<T>
Sourcepub fn strong_count(this: &Self) -> usize
pub fn strong_count(this: &Self) -> usize
Get the number of strong pointer to this node.
Sourcepub fn weak_count(this: &Self) -> usize
pub fn weak_count(this: &Self) -> usize
Get the number of weak pointer to this node.
Trait Implementations§
Source§impl<T: ?Sized> Ord for Nr<T>
impl<T: ?Sized> Ord for Nr<T>
Source§impl<T: ?Sized> PartialOrd for Nr<T>
impl<T: ?Sized> PartialOrd for Nr<T>
impl<T: ?Sized> Eq for Nr<T>
Auto Trait Implementations§
impl<T> Freeze for Nr<T>where
T: ?Sized,
impl<T> RefUnwindSafe for Nr<T>where
T: RefUnwindSafe + ?Sized,
impl<T> !Send for Nr<T>
impl<T> !Sync for Nr<T>
impl<T> Unpin for Nr<T>where
T: ?Sized,
impl<T> UnwindSafe for Nr<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