pub struct MMap<K: Ord, V: Ord> { /* private fields */ }
Implementations§
Source§impl<K: Ord, V: Ord> MMap<K, V>
impl<K: Ord, V: Ord> MMap<K, V>
pub fn new() -> MMap<K, V>
Sourcepub fn get<Q>(&self, key: &Q) -> Box<dyn Iterator<Item = &V> + '_>
pub fn get<Q>(&self, key: &Q) -> Box<dyn Iterator<Item = &V> + '_>
Returns an iterator over all the values associated with this key.
Sourcepub fn get_from<Q, R>(
&self,
key: &Q,
val: &R,
) -> Box<dyn Iterator<Item = &V> + '_>
pub fn get_from<Q, R>( &self, key: &Q, val: &R, ) -> Box<dyn Iterator<Item = &V> + '_>
Returns an iterator over all the values associated with this key and that are greater than
or equal to val
.
pub fn insert(&mut self, key: K, val: V)
pub fn remove<Q, R>(&mut self, key: &Q, val: &R) -> bool
pub fn remove_all<Q>(&mut self, key: &Q)
pub fn contains<Q, R>(&self, key: &Q, val: &R) -> bool
pub fn iter(&self) -> impl Iterator<Item = (&K, &V)>
Trait Implementations§
Source§impl<'de, K: Ord + Deserialize<'de>, V: Ord + Deserialize<'de>> Deserialize<'de> for MMap<K, V>
impl<'de, K: Ord + Deserialize<'de>, V: Ord + Deserialize<'de>> Deserialize<'de> for MMap<K, V>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl<K: Ord, V: Ord> StructuralPartialEq for MMap<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for MMap<K, V>
impl<K, V> RefUnwindSafe for MMap<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for MMap<K, V>
impl<K, V> Sync for MMap<K, V>
impl<K, V> Unpin for MMap<K, V>
impl<K, V> UnwindSafe for MMap<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)