pub struct VecMap<K, V> { /* private fields */ }
Implementations§
Source§impl<K: Ord, V> VecMap<K, V>
impl<K: Ord, V> VecMap<K, V>
pub fn new() -> Self
pub fn insert(&mut self, k: K, v: V) -> Option<V>
pub fn entry(&mut self, key: K) -> Entry<'_, K, V>
pub fn get_at(&self, index: usize) -> &V
pub fn get(&self, key: &K) -> Option<&V>
pub fn iter(&self) -> impl Iterator<Item = &(K, V)>
pub fn iter_mut(&mut self) -> impl Iterator<Item = (&K, &mut V)>
pub fn keys(&self) -> impl Iterator<Item = &K>
pub fn values(&self) -> impl Iterator<Item = &V>
pub fn values_mut(&mut self) -> impl Iterator<Item = &mut V>
Trait Implementations§
Auto Trait Implementations§
impl<K, V> Freeze for VecMap<K, V>
impl<K, V> RefUnwindSafe for VecMap<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for VecMap<K, V>
impl<K, V> Sync for VecMap<K, V>
impl<K, V> Unpin for VecMap<K, V>
impl<K, V> UnwindSafe for VecMap<K, V>where
K: 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