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> 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)