pub struct Map<K: Ord, V> {
pub values: Vec<V>,
pub map: BTreeMap<K, usize>,
}
Expand description
An insert-only mapping where the data is stored in an internal vector.
Fields§
§values: Vec<V>
Values vector containing the actual values.
map: BTreeMap<K, usize>
Map of keys to positions in the values vector.
Implementations§
Trait Implementations§
impl<K: Ord, V> StructuralPartialEq for Map<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for Map<K, V>
impl<K, V> RefUnwindSafe for Map<K, V>where
V: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, V> Send for Map<K, V>
impl<K, V> Sync for Map<K, V>
impl<K, V> Unpin for Map<K, V>where
V: Unpin,
impl<K, V> UnwindSafe for Map<K, V>where
K: RefUnwindSafe,
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