pub struct AtomicHashMap<K: Hash, V>(/* private fields */);
Implementations§
Source§impl<K: Hash, V> AtomicHashMap<K, V>
impl<K: Hash, V> AtomicHashMap<K, V>
Sourcepub fn iter_values(&self) -> ValueIter<'_, K, V> ⓘ
pub fn iter_values(&self) -> ValueIter<'_, K, V> ⓘ
Iterate over all values in the hash map
Sourcepub fn insert(&mut self, key: K, value: V)
pub fn insert(&mut self, key: K, value: V)
Insert a new value
If a value is already stored in the hash map, this will not overwrite its content, the new version will appended in the linked list.
Trait Implementations§
Auto Trait Implementations§
impl<K, V> Freeze for AtomicHashMap<K, V>
impl<K, V> RefUnwindSafe for AtomicHashMap<K, V>
impl<K, V> Send for AtomicHashMap<K, V>
impl<K, V> Sync for AtomicHashMap<K, V>
impl<K, V> Unpin for AtomicHashMap<K, V>
impl<K, V> UnwindSafe for AtomicHashMap<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