pub struct RcWeak<C, V, S>where
C: Counter,{ /* private fields */ }
Expand description
Weak pointer to a reference counted thin pointer Rc
Implementations§
Source§impl<C, V, S> RcWeak<C, V, S>where
C: Counter,
impl<C, V, S> RcWeak<C, V, S>where
C: Counter,
Sourcepub fn strong_count(&self) -> usize
pub fn strong_count(&self) -> usize
Gets the strong pointer count
Sourcepub fn weak_count(&self) -> usize
pub fn weak_count(&self) -> usize
Gets the weak pointer count
Trait Implementations§
impl<C, V, S> Send for RcWeak<C, V, S>
impl<C, V, S> Sync for RcWeak<C, V, S>
Auto Trait Implementations§
impl<C, V, S> Freeze for RcWeak<C, V, S>
impl<C, V, S> RefUnwindSafe for RcWeak<C, V, S>
impl<C, V, S> Unpin for RcWeak<C, V, S>
impl<C, V, S> UnwindSafe for RcWeak<C, V, S>
Blanket Implementations§
Source§impl<T> AcceptDefault<T> for T
impl<T> AcceptDefault<T> for T
fn unwrap_or_default(self) -> T
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