pub enum Entry<T> {
Occupied {
value: T,
generation: u64,
},
Free {
next_free_idx: Option<usize>,
},
Unmapped,
}Expand description
An allocation entry in a generational arena.
Variants§
Occupied
An occupied entry containing an allocated value and the associated generation counter.
Free
Free entry pointing to next free entry in the free list.
Unmapped
An unmapped arena entry.
Trait Implementations§
impl<T: Copy> Copy for Entry<T>
impl<T: Eq> Eq for Entry<T>
impl<T> StructuralPartialEq for Entry<T>
Auto Trait Implementations§
impl<T> Freeze for Entry<T>where
T: Freeze,
impl<T> RefUnwindSafe for Entry<T>where
T: RefUnwindSafe,
impl<T> Send for Entry<T>where
T: Send,
impl<T> Sync for Entry<T>where
T: Sync,
impl<T> Unpin for Entry<T>where
T: Unpin,
impl<T> UnwindSafe for Entry<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