pub struct GenerationalArena<T> { /* private fields */ }Expand description
An arena that tracks generations for safe index validation.
When an element is removed, the slot’s generation is incremented. Indices store the generation they were created with, so stale references can be detected.
Implementations§
Trait Implementations§
Source§impl<T: Debug> Debug for GenerationalArena<T>
impl<T: Debug> Debug for GenerationalArena<T>
Auto Trait Implementations§
impl<T> Freeze for GenerationalArena<T>
impl<T> RefUnwindSafe for GenerationalArena<T>where
T: RefUnwindSafe,
impl<T> Send for GenerationalArena<T>where
T: Send,
impl<T> Sync for GenerationalArena<T>where
T: Sync,
impl<T> Unpin for GenerationalArena<T>where
T: Unpin,
impl<T> UnsafeUnpin for GenerationalArena<T>
impl<T> UnwindSafe for GenerationalArena<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