[][src]Trait iterable::Consumer

pub trait Consumer {
    type Item;
    type IntoIter: Iterator<Item = Self::Item>;
    fn into_iter(self) -> Self::IntoIter;
}

Associated Types

type Item

type IntoIter: Iterator<Item = Self::Item>

Loading content...

Required methods

fn into_iter(self) -> Self::IntoIter

Loading content...

Implementations on Foreign Types

impl<'a, T: 'a> Consumer for &'a [T][src]

impl<K, V> Consumer for HashMap<K, V>[src]

type Item = <HashMap<K, V> as IntoIterator>::Item

type IntoIter = <HashMap<K, V> as IntoIterator>::IntoIter

impl<'a, K: 'a, V: 'a> Consumer for &'a HashMap<K, V>[src]

type Item = <&'a HashMap<K, V> as IntoIterator>::Item

type IntoIter = <&'a HashMap<K, V> as IntoIterator>::IntoIter

impl<T> Consumer for HashSet<T>[src]

type Item = <HashSet<T> as IntoIterator>::Item

type IntoIter = <HashSet<T> as IntoIterator>::IntoIter

impl<'a, T: 'a> Consumer for &'a HashSet<T>[src]

type Item = <&'a HashSet<T> as IntoIterator>::Item

type IntoIter = <&'a HashSet<T> as IntoIterator>::IntoIter

impl<T> Consumer for Vec<T>[src]

type Item = <Vec<T> as IntoIterator>::Item

type IntoIter = <Vec<T> as IntoIterator>::IntoIter

impl<'a, T: 'a> Consumer for &'a Vec<T>[src]

type Item = <&'a Vec<T> as IntoIterator>::Item

type IntoIter = <&'a Vec<T> as IntoIterator>::IntoIter

impl<T> Consumer for BTreeSet<T>[src]

impl<'a, T: 'a> Consumer for &'a BTreeSet<T>[src]

type Item = <&'a BTreeSet<T> as IntoIterator>::Item

type IntoIter = <&'a BTreeSet<T> as IntoIterator>::IntoIter

impl<K, V> Consumer for BTreeMap<K, V>[src]

type Item = <BTreeMap<K, V> as IntoIterator>::Item

type IntoIter = <BTreeMap<K, V> as IntoIterator>::IntoIter

impl<'a, K: 'a, V: 'a> Consumer for &'a BTreeMap<K, V>[src]

type Item = <&'a BTreeMap<K, V> as IntoIterator>::Item

type IntoIter = <&'a BTreeMap<K, V> as IntoIterator>::IntoIter

impl<T> Consumer for BinaryHeap<T>[src]

impl<'a, T: 'a> Consumer for &'a BinaryHeap<T>[src]

type Item = <&'a BinaryHeap<T> as IntoIterator>::Item

type IntoIter = <&'a BinaryHeap<T> as IntoIterator>::IntoIter

impl<T> Consumer for LinkedList<T>[src]

impl<'a, T: 'a> Consumer for &'a LinkedList<T>[src]

type Item = <&'a LinkedList<T> as IntoIterator>::Item

type IntoIter = <&'a LinkedList<T> as IntoIterator>::IntoIter

impl<T> Consumer for VecDeque<T>[src]

impl<'a, T: 'a> Consumer for &'a VecDeque<T>[src]

type Item = <&'a VecDeque<T> as IntoIterator>::Item

type IntoIter = <&'a VecDeque<T> as IntoIterator>::IntoIter

impl Consumer for String[src]

type Item = char

type IntoIter = Chars

impl<'a> Consumer for &'a String[src]

type Item = char

type IntoIter = Chars<'a>

impl<'a> Consumer for &'a str[src]

type Item = char

type IntoIter = Chars<'a>

impl<T, const N: usize> Consumer for [T; N][src]

type Item = T

type IntoIter = IntoIter<T, N>

impl<'a, T: 'a, const N: usize> Consumer for &'a [T; N][src]

type Item = <&'a [T; N] as IntoIterator>::Item

type IntoIter = <&'a [T; N] as IntoIterator>::IntoIter

Loading content...

Implementors

impl<I, F> Consumer for WithFilter<I, F> where
    I: Consumer,
    F: Fn(&I::Item) -> bool
[src]

type Item = I::Item

type IntoIter = Filter<I::IntoIter, F>

Loading content...