[−][src]Struct casper_execution_engine::shared::additive_map::AdditiveMap
Implementations
impl<K: Eq + Hash, V> AdditiveMap<K, V, RandomState>
[src]
impl<K: Eq + Hash, V: AddAssign + Default, S: BuildHasher> AdditiveMap<K, V, S>
[src]
pub fn insert_add(&mut self, key: K, value_to_add: V)
[src]
Modifies the existing value stored under key
, or the default value for V
if none, by
adding value_to_add
.
impl<K, V, S> AdditiveMap<K, V, S>
[src]
pub fn keys(&self) -> Keys<'_, K, V>
[src]
pub fn values(&self) -> Values<'_, K, V>
[src]
pub fn iter(&self) -> Iter<'_, K, V>
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
impl<K: Eq + Hash, V, S: BuildHasher> AdditiveMap<K, V, S>
[src]
pub fn get<Q: ?Sized>(&self, key: &Q) -> Option<&V> where
K: Borrow<Q>,
Q: Eq + Hash,
[src]
K: Borrow<Q>,
Q: Eq + Hash,
pub fn insert(&mut self, key: K, value: V) -> Option<V>
[src]
pub fn remove<Q: ?Sized>(&mut self, key: &Q) -> Option<V> where
K: Borrow<Q>,
Q: Eq + Hash,
[src]
K: Borrow<Q>,
Q: Eq + Hash,
pub fn remove_entry<Q: ?Sized>(&mut self, key: &Q) -> Option<(K, V)> where
K: Borrow<Q>,
Q: Eq + Hash,
[src]
K: Borrow<Q>,
Q: Eq + Hash,
Trait Implementations
impl<K: Clone, V: Clone, S: Clone> Clone for AdditiveMap<K, V, S>
[src]
pub fn clone(&self) -> AdditiveMap<K, V, S>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<K: Eq + Hash + Debug, V: Debug, S: BuildHasher> Debug for AdditiveMap<K, V, S>
[src]
impl<K: Eq + Hash, V, S: BuildHasher + Default> Default for AdditiveMap<K, V, S>
[src]
impl<K: Eq + Hash, V: Eq, S: BuildHasher> Eq for AdditiveMap<K, V, S>
[src]
impl<K: Eq + Hash, V, S: BuildHasher + Default> FromIterator<(K, V)> for AdditiveMap<K, V, S>
[src]
pub fn from_iter<T: IntoIterator<Item = (K, V)>>(iter: T) -> Self
[src]
impl<K, Q: ?Sized, V, S, '_> Index<&'_ Q> for AdditiveMap<K, V, S> where
K: Eq + Hash + Borrow<Q>,
Q: Eq + Hash,
S: BuildHasher,
[src]
K: Eq + Hash + Borrow<Q>,
Q: Eq + Hash,
S: BuildHasher,
impl<'a, K, V, S> IntoIterator for &'a AdditiveMap<K, V, S>
[src]
type Item = (&'a K, &'a V)
The type of the elements being iterated over.
type IntoIter = Iter<'a, K, V>
Which kind of iterator are we turning this into?
pub fn into_iter(self) -> Iter<'a, K, V>
[src]
impl<'a, K, V, S> IntoIterator for &'a mut AdditiveMap<K, V, S>
[src]
type Item = (&'a K, &'a mut V)
The type of the elements being iterated over.
type IntoIter = IterMut<'a, K, V>
Which kind of iterator are we turning this into?
pub fn into_iter(self) -> IterMut<'a, K, V>
[src]
impl<K, V, S> IntoIterator for AdditiveMap<K, V, S>
[src]
type Item = (K, V)
The type of the elements being iterated over.
type IntoIter = IntoIter<K, V>
Which kind of iterator are we turning this into?
pub fn into_iter(self) -> IntoIter<K, V>
[src]
impl<K: Eq + Hash, V: PartialEq, S: BuildHasher> PartialEq<AdditiveMap<K, V, S>> for AdditiveMap<K, V, S>
[src]
Auto Trait Implementations
impl<K, V, S> RefUnwindSafe for AdditiveMap<K, V, S> where
K: RefUnwindSafe,
S: RefUnwindSafe,
V: RefUnwindSafe,
[src]
K: RefUnwindSafe,
S: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V, S> Send for AdditiveMap<K, V, S> where
K: Send,
S: Send,
V: Send,
[src]
K: Send,
S: Send,
V: Send,
impl<K, V, S> Sync for AdditiveMap<K, V, S> where
K: Sync,
S: Sync,
V: Sync,
[src]
K: Sync,
S: Sync,
V: Sync,
impl<K, V, S> Unpin for AdditiveMap<K, V, S> where
K: Unpin,
S: Unpin,
V: Unpin,
[src]
K: Unpin,
S: Unpin,
V: Unpin,
impl<K, V, S> UnwindSafe for AdditiveMap<K, V, S> where
K: UnwindSafe,
S: UnwindSafe,
V: UnwindSafe,
[src]
K: UnwindSafe,
S: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,