Enum generational_cache::arena::Entry
source · 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§
source§impl<T: PartialEq> PartialEq for Entry<T>
impl<T: PartialEq> PartialEq for Entry<T>
impl<T: Copy> Copy for Entry<T>
impl<T: Eq> Eq for Entry<T>
impl<T> StructuralEq for Entry<T>
impl<T> StructuralPartialEq for Entry<T>
Auto Trait Implementations§
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