pub struct IndexedLinkedHashMap<I, K, V> { /* private fields */ }Expand description
Stores number of keys, keys in order, and values.
Implementations§
Source§impl<I, K, V> IndexedLinkedHashMap<I, K, V>
impl<I, K, V> IndexedLinkedHashMap<I, K, V>
Sourcepub fn at(&self, i: Option<usize>) -> Option<&V>
pub fn at(&self, i: Option<usize>) -> Option<&V>
Gets value using index; returns Some(v) if exists or None.
Sourcepub fn key_at(&self, i: Option<usize>) -> Option<&K>
pub fn key_at(&self, i: Option<usize>) -> Option<&K>
Gets key using index; returns Some(k) if exists or None.
pub fn set_at(&mut self, i: Option<usize>, k: K, v: V)
Sourcepub fn remove(&mut self, k: K) -> Option<IndexedLinkedHashMapValue<V>>
pub fn remove(&mut self, k: K) -> Option<IndexedLinkedHashMapValue<V>>
Removes value; returns Some(v) if exists or None.
Sourcepub fn contains_key(&self, k: K) -> bool
pub fn contains_key(&self, k: K) -> bool
Check if contains a key.
Sourcepub fn values(&self) -> Vec<&IndexedLinkedHashMapValue<V>>
pub fn values(&self) -> Vec<&IndexedLinkedHashMapValue<V>>
Gets all values.
Trait Implementations§
Auto Trait Implementations§
impl<I, K, V> Freeze for IndexedLinkedHashMap<I, K, V>where
I: Freeze,
impl<I, K, V> RefUnwindSafe for IndexedLinkedHashMap<I, K, V>
impl<I, K, V> Send for IndexedLinkedHashMap<I, K, V>
impl<I, K, V> Sync for IndexedLinkedHashMap<I, K, V>
impl<I, K, V> Unpin for IndexedLinkedHashMap<I, K, V>
impl<I, K, V> UnwindSafe for IndexedLinkedHashMap<I, K, V>
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