[][src]Struct dashmap::iter::IterMut

pub struct IterMut<'a, K, V, S = RandomState, M = DashMap<K, V, S>> { /* fields omitted */ }

Iterator over a DashMap yielding mutable references.

Examples

use dashmap::DashMap;

let map = DashMap::new();
map.insert("Johnny", 21);
map.iter_mut().for_each(|mut r| *r += 1);
assert_eq!(*map.get("Johnny").unwrap(), 22);

Trait Implementations

impl<'a, K: Eq + Hash, V, S: 'a + BuildHasher + Clone, M: Map<'a, K, V, S>> Iterator for IterMut<'a, K, V, S, M>[src]

type Item = RefMutMulti<'a, K, V, S>

The type of the elements being iterated over.

impl<'a, 'i, K, V, S, M> Send for IterMut<'i, K, V, S, M> where
    K: 'a + Eq + Hash + Send,
    V: 'a + Send,
    S: 'a + BuildHasher + Clone,
    M: Map<'a, K, V, S>, 
[src]

impl<'a, 'i, K, V, S, M> Sync for IterMut<'i, K, V, S, M> where
    K: 'a + Eq + Hash + Sync,
    V: 'a + Sync,
    S: 'a + BuildHasher + Clone,
    M: Map<'a, K, V, S>, 
[src]

Auto Trait Implementations

impl<'a, K, V, S = RandomState, M = DashMap<K, V, S>> !RefUnwindSafe for IterMut<'a, K, V, S, M>[src]

impl<'a, K, V, S, M> Unpin for IterMut<'a, K, V, S, M>[src]

impl<'a, K, V, S = RandomState, M = DashMap<K, V, S>> !UnwindSafe for IterMut<'a, K, V, S, M>[src]

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> From<T> for T[src]

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> Pointable for T

type Init = T

The type for initializers.

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.