pub struct ArenaMap<T, V> { /* private fields */ }Expand description
A dense map from arena indices to values.
Backed by a Vec<Option<V>> aligned with an arena, allowing O(1) lookup
by index.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T, V> Freeze for ArenaMap<T, V>
impl<T, V> RefUnwindSafe for ArenaMap<T, V>where
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<T, V> Send for ArenaMap<T, V>
impl<T, V> Sync for ArenaMap<T, V>
impl<T, V> Unpin for ArenaMap<T, V>
impl<T, V> UnsafeUnpin for ArenaMap<T, V>
impl<T, V> UnwindSafe for ArenaMap<T, V>where
T: UnwindSafe,
V: 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