Struct casper_execution_engine::shared::additive_map::AdditiveMap[][src]

pub struct AdditiveMap<K, V, S = RandomState>(_);

Implementations

impl<K: Eq + Hash, V> AdditiveMap<K, V, RandomState>[src]

pub fn new() -> Self[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]

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]

pub fn remove_entry<Q: ?Sized>(&mut self, key: &Q) -> Option<(K, V)> where
    K: Borrow<Q>,
    Q: Eq + Hash
[src]

Trait Implementations

impl<K: Clone, V: Clone, S: Clone> Clone for AdditiveMap<K, V, S>[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]

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]

type Output = V

The returned type after indexing.

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?

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?

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?

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

impl<K, V, S> Send for AdditiveMap<K, V, S> where
    K: Send,
    S: Send,
    V: Send

impl<K, V, S> Sync for AdditiveMap<K, V, S> where
    K: Sync,
    S: Sync,
    V: Sync

impl<K, V, S> Unpin for AdditiveMap<K, V, S> where
    K: Unpin,
    S: Unpin,
    V: Unpin

impl<K, V, S> UnwindSafe for AdditiveMap<K, V, S> where
    K: UnwindSafe,
    S: UnwindSafe,
    V: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> DynClone for T where
    T: Clone
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,