pub struct OccupiedEntry<'a, K, V> { /* private fields */ }Expand description
A view into an occupied entry of a BTreeIndexMultiMap.
This is part of the Entry enum.
Implementations§
Source§impl<'a, K, V> OccupiedEntry<'a, K, V>
impl<'a, K, V> OccupiedEntry<'a, K, V>
Sourcepub fn get_full(&self) -> GetIndexedEntries<'_, K, V> ⓘ
pub fn get_full(&self) -> GetIndexedEntries<'_, K, V> ⓘ
Returns an iterator over (index, &key, &value) for every value
associated with this entry’s key.
Sourcepub fn get_entry(&self) -> GetEntries<'_, K, V> ⓘ
pub fn get_entry(&self) -> GetEntries<'_, K, V> ⓘ
Returns an iterator over (&key, &value) for every value associated
with this entry’s key.
Sourcepub fn get(&self) -> Get<'_, K, V> ⓘ
pub fn get(&self) -> Get<'_, K, V> ⓘ
Returns an iterator over a reference to every value associated with this entry’s key.
Sourcepub fn get_mut_full(&mut self) -> GetIndexedEntriesMut<'_, K, V> ⓘ
pub fn get_mut_full(&mut self) -> GetIndexedEntriesMut<'_, K, V> ⓘ
Returns an iterator over (index, &key, &mut value) for every value
associated with this entry’s key.
Sourcepub fn get_mut_entry(&mut self) -> GetEntriesMut<'_, K, V> ⓘ
pub fn get_mut_entry(&mut self) -> GetEntriesMut<'_, K, V> ⓘ
Returns an iterator over (&key, &mut value) for every value
associated with this entry’s key.
Sourcepub fn get_mut(&mut self) -> GetMut<'_, K, V> ⓘ
pub fn get_mut(&mut self) -> GetMut<'_, K, V> ⓘ
Returns an iterator over a mutable reference to every value associated with this entry’s key.
Sourcepub fn into_mut_full(self) -> GetIndexedEntriesMut<'a, K, V> ⓘ
pub fn into_mut_full(self) -> GetIndexedEntriesMut<'a, K, V> ⓘ
Consumes this entry, returning an iterator over (index, &key, &mut value) for every value associated with this entry’s key, tied to
the lifetime of the map.
Sourcepub fn into_mut_entry(self) -> GetEntriesMut<'a, K, V> ⓘ
pub fn into_mut_entry(self) -> GetEntriesMut<'a, K, V> ⓘ
Consumes this entry, returning an iterator over (&key, &mut value) for every value associated with this entry’s key, tied to
the lifetime of the map.