Struct typedmap::hashmap::Drain[][src]

pub struct Drain<'a, Marker>(_, _);

An draining iterator over the entries of a TypedMap.

This struct is created by the drain method on TypedMap. See its documentation for more.

Example

use typedmap::TypedMap;
use typedmap::TypedMapKey;

#[derive(Hash, PartialEq, Eq, Debug)]
struct Key(usize);

impl TypedMapKey for Key {
    type Value = u32;
}

let mut map: TypedMap = TypedMap::new();
map.insert(Key(3), 3);
let iter = map.into_iter();

Trait Implementations

impl<Marker> ExactSizeIterator for Drain<'_, Marker>[src]

impl<Marker> FusedIterator for Drain<'_, Marker>[src]

impl<'a, Marker> Iterator for Drain<'a, Marker>[src]

type Item = TypedKeyValue<Marker>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, Marker> !RefUnwindSafe for Drain<'a, Marker>

impl<'a, Marker> !Send for Drain<'a, Marker>

impl<'a, Marker> !Sync for Drain<'a, Marker>

impl<'a, Marker> !Unpin for Drain<'a, Marker>

impl<'a, Marker> !UnwindSafe for Drain<'a, Marker>

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, 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.