[][src]Struct enum_map::IntoIter

pub struct IntoIter<K: Enum<V>, V> { /* fields omitted */ }

A map iterator that moves out of map.

This struct is created by into_iter on EnumMap.

Examples

use enum_map::{enum_map, Enum};

#[derive(Debug, Enum)]
enum Example {
    A,
    B,
}

let map = enum_map! { Example::A | Example::B => String::from("123") };
for (_, value) in map {
    assert_eq!(value + "4", "1234");
}

Trait Implementations

impl<K: Enum<V>, V> Drop for IntoIter<K, V>[src]

impl<K: Enum<V>, V> ExactSizeIterator for IntoIter<K, V>[src]

impl<K: Enum<V>, V> FusedIterator for IntoIter<K, V>[src]

impl<K: Enum<V>, V> Iterator for IntoIter<K, V>[src]

type Item = (K, V)

The type of the elements being iterated over.

Auto Trait Implementations

impl<K, V> RefUnwindSafe for IntoIter<K, V> where
    <K as Enum<V>>::Array: RefUnwindSafe

impl<K, V> Send for IntoIter<K, V> where
    <K as Enum<V>>::Array: Send

impl<K, V> Sync for IntoIter<K, V> where
    <K as Enum<V>>::Array: Sync

impl<K, V> Unpin for IntoIter<K, V> where
    <K as Enum<V>>::Array: Unpin

impl<K, V> UnwindSafe for IntoIter<K, V> where
    <K as Enum<V>>::Array: 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> 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.