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 from_vec(v: Vec<(K, V)>) -> Self
pub fn contains_key<Q>(&self, key: &Q) -> bool
pub fn get<Q>(&self, key: &Q) -> Option<&V>
pub fn get_mut<Q>(&mut self, key: &Q) -> Option<&mut V>
pub fn insert(&mut self, key: K, value: V) -> Option<V>
pub fn remove<Q>(&mut self, key: &Q) -> Option<V>
pub fn entry(&mut self, key: K) -> Entry<'_, K, V>
pub fn merge_copied_with(&mut self, other: &Self, f: impl FnMut(V, V) -> V)
pub fn remove_less_than<Q>(&mut self, key: &Q)
pub fn remove_max(&mut self) -> Option<(K, V)>
pub fn apply(&self, keys: &VecSet<K>, f: impl FnMut(&V))
Trait Implementations§
Source§impl<'a, K, V> IntoIterator for &'a VecMap<K, V>
impl<'a, K, V> IntoIterator for &'a VecMap<K, V>
Source§impl<'a, K, V> IntoIterator for &'a mut VecMap<K, V>
impl<'a, K, V> IntoIterator for &'a mut VecMap<K, V>
Source§impl<K, V> IntoIterator for VecMap<K, V>
impl<K, V> IntoIterator for VecMap<K, V>
impl<K: Eq, V: Eq> Eq for VecMap<K, V>
impl<K, V> StructuralPartialEq for VecMap<K, V>
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