pub struct WeakRegistry<T: WeakEntry> { /* private fields */ }Implementations§
Source§impl<T: WeakEntry> WeakRegistry<T>
impl<T: WeakEntry> WeakRegistry<T>
pub fn len(&self) -> usize
pub fn stats(&self) -> WeakRegistryStats
pub fn remove_identity(&mut self, id: usize)
pub fn push_unique(&mut self, entry: T)
pub fn live_snapshot_by_kind(&mut self) -> WeakRegistrySnapshot<T::Strong>
pub fn live_snapshot(&mut self) -> Vec<T::Strong>
pub fn retain_identities(&mut self, ids: &HashSet<usize>)
Trait Implementations§
Source§impl<T: Clone + WeakEntry> Clone for WeakRegistry<T>
impl<T: Clone + WeakEntry> Clone for WeakRegistry<T>
Source§fn clone(&self) -> WeakRegistry<T>
fn clone(&self) -> WeakRegistry<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for WeakRegistry<T>
impl<T> RefUnwindSafe for WeakRegistry<T>where
T: RefUnwindSafe,
impl<T> Send for WeakRegistry<T>where
T: Send,
impl<T> Sync for WeakRegistry<T>where
T: Sync,
impl<T> Unpin for WeakRegistry<T>where
T: Unpin,
impl<T> UnsafeUnpin for WeakRegistry<T>
impl<T> UnwindSafe for WeakRegistry<T>where
T: UnwindSafe,
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