Struct containers::collections::HashTable [−][src]
pub struct HashTable<K: Eq + Hash, T, H: Clone + Hasher = DefaultHasher, A: Alloc = NullAllocator> { /* fields omitted */ }
Implementations
pub fn find_with_ix<Q: ?Sized>(&self, k: &Q) -> Option<(usize, &K, &T)> where
K: Borrow<Q>,
Q: Eq + Hash,
pub fn find_mut_with_ix<Q: ?Sized>(
&mut self,
k: &Q
) -> Option<(usize, &K, &mut T)> where
K: Borrow<Q>,
Q: Eq + Hash,
pub fn find_mut<Q: ?Sized>(&mut self, k: &Q) -> Option<(&K, &mut T)> where
K: Borrow<Q>,
Q: Eq + Hash,
pub fn insert_with<F: FnOnce(Option<T>) -> T>(
&mut self,
k: K,
f: F
) -> Result<(usize, &K, &mut T), (K, F)>
pub fn iter_with_ix(&self) -> IterWithIx<'_, K, T>ⓘNotable traits for IterWithIx<'a, K, T>impl<'a, K, T> Iterator for IterWithIx<'a, K, T> where
K: 'a,
T: 'a, type Item = (usize, &'a K, &'a T);
Notable traits for IterWithIx<'a, K, T>
impl<'a, K, T> Iterator for IterWithIx<'a, K, T> where
K: 'a,
T: 'a, type Item = (usize, &'a K, &'a T);
pub fn iter_mut_with_ix(&mut self) -> IterMutWithIx<'_, K, T>ⓘNotable traits for IterMutWithIx<'a, K, T>impl<'a, K, T> Iterator for IterMutWithIx<'a, K, T> where
K: 'a,
T: 'a, type Item = (usize, &'a K, &'a mut T);
Notable traits for IterMutWithIx<'a, K, T>
impl<'a, K, T> Iterator for IterMutWithIx<'a, K, T> where
K: 'a,
T: 'a, type Item = (usize, &'a K, &'a mut T);