pub struct IndexedMap<V: Clone> { /* private fields */ }Expand description
A vector-backed map where keys are dense integers 0..n.
Provides O(1) lookup and O(1) insertion (amortized).
Implementations§
Source§impl<V: Clone> IndexedMap<V>
impl<V: Clone> IndexedMap<V>
Trait Implementations§
Source§impl<V: Clone + Clone> Clone for IndexedMap<V>
impl<V: Clone + Clone> Clone for IndexedMap<V>
Source§fn clone(&self) -> IndexedMap<V>
fn clone(&self) -> IndexedMap<V>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<V> Freeze for IndexedMap<V>
impl<V> RefUnwindSafe for IndexedMap<V>where
V: RefUnwindSafe,
impl<V> Send for IndexedMap<V>where
V: Send,
impl<V> Sync for IndexedMap<V>where
V: Sync,
impl<V> Unpin for IndexedMap<V>where
V: Unpin,
impl<V> UnsafeUnpin for IndexedMap<V>
impl<V> UnwindSafe for IndexedMap<V>where
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