pub struct ReassignableCountedMap<K: HashIndex, V> { /* private fields */ }Implementations§
source§impl<K: HashIndex, V> ReassignableCountedMap<K, V>
impl<K: HashIndex, V> ReassignableCountedMap<K, V>
pub fn new() -> Self
pub unsafe fn new_unsafe( hash_map: HashMap<K, V>, counter: RemovableCounter<K> ) -> Self
pub fn with_hasher(hash_builder: RandomState) -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity_and_hasher( capacity: usize, hash_builder: RandomState ) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn capacity(&self) -> usize
pub fn clear(&mut self)
pub fn reserve(&mut self, additional: usize)
pub fn try_reserve(&mut self, additional: usize) -> Result<(), TryReserveError>
pub fn shrink_to_fit(&mut self)
pub fn shrink_to(&mut self, min_capacity: usize)
pub fn drain(&mut self) -> Drain<'_, K, V>
pub fn iter(&self) -> Iter<'_, K, V>
pub fn iter_mut(&mut self) -> IterMut<'_, K, V>
pub fn contains_key(&self, key: &K) -> bool
pub fn keys(&self) -> Keys<'_, K, V>
pub fn values(&self) -> Values<'_, K, V>
pub fn values_mut(&mut self) -> ValuesMut<'_, K, V>
pub fn get_hash_map(&self) -> &HashMap<K, V>
pub unsafe fn get_hash_map_mut(&mut self) -> &mut HashMap<K, V>
pub fn extract_hash_map(self) -> HashMap<K, V>
pub fn get_counter(&self) -> &RemovableCounter<K> ⓘ
pub unsafe fn get_counter_mut(&mut self) -> &mut RemovableCounter<K> ⓘ
pub fn extract_counter(self) -> RemovableCounter<K> ⓘ
pub fn extract(self) -> (HashMap<K, V>, RemovableCounter<K>)
pub fn push(&mut self, value: V) -> Result<K, HashMapFull>
pub fn get(&self, index: &K) -> Option<&V>
pub fn get_mut(&mut self, index: &K) -> Option<&mut V>
pub fn remove(&mut self, index: K) -> Option<V>
pub fn remove_entry(&mut self, index: K) -> Option<(K, V)>
Trait Implementations§
source§impl<K: HashIndex, V> AsRef<RemovableCounter<K>> for ReassignableCountedMap<K, V>
impl<K: HashIndex, V> AsRef<RemovableCounter<K>> for ReassignableCountedMap<K, V>
source§fn as_ref(&self) -> &RemovableCounter<K> ⓘ
fn as_ref(&self) -> &RemovableCounter<K> ⓘ
Converts this type into a shared reference of the (usually inferred) input type.
source§impl<K: Clone + HashIndex, V: Clone> Clone for ReassignableCountedMap<K, V>
impl<K: Clone + HashIndex, V: Clone> Clone for ReassignableCountedMap<K, V>
source§fn clone(&self) -> ReassignableCountedMap<K, V>
fn clone(&self) -> ReassignableCountedMap<K, V>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<K: HashIndex, V> Default for ReassignableCountedMap<K, V>
impl<K: HashIndex, V> Default for ReassignableCountedMap<K, V>
source§impl<'a, K: HashIndex, V> IntoIterator for &'a ReassignableCountedMap<K, V>
impl<'a, K: HashIndex, V> IntoIterator for &'a ReassignableCountedMap<K, V>
source§impl<'a, K: HashIndex, V> IntoIterator for &'a mut ReassignableCountedMap<K, V>
impl<'a, K: HashIndex, V> IntoIterator for &'a mut ReassignableCountedMap<K, V>
source§impl<K: HashIndex, V> IntoIterator for ReassignableCountedMap<K, V>
impl<K: HashIndex, V> IntoIterator for ReassignableCountedMap<K, V>
source§impl<K: PartialEq + HashIndex, V: PartialEq> PartialEq for ReassignableCountedMap<K, V>
impl<K: PartialEq + HashIndex, V: PartialEq> PartialEq for ReassignableCountedMap<K, V>
source§fn eq(&self, other: &ReassignableCountedMap<K, V>) -> bool
fn eq(&self, other: &ReassignableCountedMap<K, V>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<K: Eq + HashIndex, V: Eq> Eq for ReassignableCountedMap<K, V>
impl<K: HashIndex, V> StructuralPartialEq for ReassignableCountedMap<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for ReassignableCountedMap<K, V>where
K: Freeze,
impl<K, V> RefUnwindSafe for ReassignableCountedMap<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for ReassignableCountedMap<K, V>
impl<K, V> Sync for ReassignableCountedMap<K, V>
impl<K, V> Unpin for ReassignableCountedMap<K, V>
impl<K, V> UnwindSafe for ReassignableCountedMap<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