Struct cl_structures::index_map::IndexMap
source · pub struct IndexMap<K: MapIndex, V> { /* private fields */ }
Implementations§
source§impl<V, K: MapIndex> IndexMap<K, V>
impl<V, K: MapIndex> IndexMap<K, V>
pub fn new() -> Self
pub fn get(&self, index: K) -> Option<&V>
pub fn get_mut(&mut self, index: K) -> Option<&mut V>
pub fn get_many_mut<const N: usize>( &mut self, indices: [K; N] ) -> Result<[&mut V; N], GetManyMutError<N>>
pub fn iter(&self) -> impl Iterator<Item = &V>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut V>
pub fn key_iter(&self) -> MapIndexIter<K>
pub fn insert(&mut self, value: V) -> K
Trait Implementations§
source§impl<K: PartialEq + MapIndex, V: PartialEq> PartialEq for IndexMap<K, V>
impl<K: PartialEq + MapIndex, V: PartialEq> PartialEq for IndexMap<K, V>
impl<K: Eq + MapIndex, V: Eq> Eq for IndexMap<K, V>
impl<K: MapIndex, V> StructuralPartialEq for IndexMap<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for IndexMap<K, V>
impl<K, V> RefUnwindSafe for IndexMap<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for IndexMap<K, V>
impl<K, V> Sync for IndexMap<K, V>
impl<K, V> Unpin for IndexMap<K, V>
impl<K, V> UnwindSafe for IndexMap<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