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§
Auto Trait Implementations§
impl<T> Forget for WeakRegistry<T>
impl<T> Freeze for WeakRegistry<T>
impl<T> Move for WeakRegistry<T>
impl<T> RefUnwindSafe for WeakRegistry<T>where
Vec<T>: RefUnwindSafe,
impl<T> Send for WeakRegistry<T>
impl<T> Sync for WeakRegistry<T>
impl<T> Unpin for WeakRegistry<T>
impl<T> UnsafeUnpin for WeakRegistry<T>where
Vec<T>: UnsafeUnpin,
impl<T> UnwindSafe for WeakRegistry<T>where
Vec<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