pub struct TransactionalHashMap<K, V>{ /* private fields */ }
Implementations§
source§impl<K, V> TransactionalHashMap<K, V>
impl<K, V> TransactionalHashMap<K, V>
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn inner(&self) -> &HashMap<K, V>
pub fn entry(&mut self, key: K) -> Entry<'_, K, V>
pub fn insert(&mut self, k: K, v: V) -> Option<V>
pub fn remove(&mut self, k: &K) -> Option<V>
pub fn clear(&mut self)
pub fn len(&self) -> usize
pub fn get<Q>(&self, k: &Q) -> Option<&V>
pub fn get_mut<Q>(&mut self, k: &Q) -> Option<&mut V>
Trait Implementations§
source§impl<K, V> Clone for TransactionalHashMap<K, V>
impl<K, V> Clone for TransactionalHashMap<K, V>
source§fn clone(&self) -> TransactionalHashMap<K, V>
fn clone(&self) -> TransactionalHashMap<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, V> Debug for TransactionalHashMap<K, V>
impl<K, V> Debug for TransactionalHashMap<K, V>
source§impl<K, V> Extend<(K, V)> for TransactionalHashMap<K, V>
impl<K, V> Extend<(K, V)> for TransactionalHashMap<K, V>
source§fn extend<T: IntoIterator<Item = (K, V)>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = (K, V)>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl<K, V> FromIterator<(K, V)> for TransactionalHashMap<K, V>
impl<K, V> FromIterator<(K, V)> for TransactionalHashMap<K, V>
source§fn from_iter<T: IntoIterator<Item = (K, V)>>(
iter: T
) -> TransactionalHashMap<K, V>
fn from_iter<T: IntoIterator<Item = (K, V)>>( iter: T ) -> TransactionalHashMap<K, V>
This is creating a new TransactionalHashMap from iterator and since it is initializing a new instance there is no need to track the initial items inside
source§impl<K, V> PartialEq for TransactionalHashMap<K, V>
impl<K, V> PartialEq for TransactionalHashMap<K, V>
source§fn eq(&self, other: &TransactionalHashMap<K, V>) -> bool
fn eq(&self, other: &TransactionalHashMap<K, V>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<K, V> Transactional for TransactionalHashMap<K, V>
impl<K, V> Transactional for TransactionalHashMap<K, V>
impl<K, V> Eq for TransactionalHashMap<K, V>
impl<K, V> StructuralPartialEq for TransactionalHashMap<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for TransactionalHashMap<K, V>
impl<K, V> RefUnwindSafe for TransactionalHashMap<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for TransactionalHashMap<K, V>
impl<K, V> Sync for TransactionalHashMap<K, V>
impl<K, V> Unpin for TransactionalHashMap<K, V>
impl<K, V> UnwindSafe for TransactionalHashMap<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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.