[][src]Struct dashmap::iter::OwningIter

pub struct OwningIter<K, V, S = RandomState> { /* fields omitted */ }

Iterator over a DashMap yielding key value pairs.

Examples

use dashmap::DashMap;

let map = DashMap::new();
map.insert("hello", "world");
map.insert("alex", "steve");
let pairs: Vec<(&'static str, &'static str)> = map.into_iter().collect();
assert_eq!(pairs.len(), 2);

Trait Implementations

impl<K: Eq + Hash, V, S: BuildHasher + Clone> Iterator for OwningIter<K, V, S>[src]

type Item = (K, V)

The type of the elements being iterated over.

impl<K, V, S> Send for OwningIter<K, V, S> where
    K: Eq + Hash + Send,
    V: Send,
    S: BuildHasher + Clone + Send
[src]

impl<K, V, S> Sync for OwningIter<K, V, S> where
    K: Eq + Hash + Sync,
    V: Sync,
    S: BuildHasher + Clone + Sync
[src]

Auto Trait Implementations

impl<K, V, S = RandomState> !RefUnwindSafe for OwningIter<K, V, S>[src]

impl<K, V, S> Unpin for OwningIter<K, V, S> where
    K: Unpin,
    S: Unpin,
    V: Unpin
[src]

impl<K, V, S = RandomState> !UnwindSafe for OwningIter<K, V, S>[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.