[][src]Trait amadeus_core::dist_iter::Consumer

pub trait Consumer {
    type Item;
    fn run(self, i: &mut impl FnMut(Self::Item) -> bool) -> bool;
}

Associated Types

type Item

Loading content...

Required methods

fn run(self, i: &mut impl FnMut(Self::Item) -> bool) -> bool

Loading content...

Implementations on Foreign Types

impl<A: Consumer, B: Consumer<Item = A::Item>> Consumer for Sum2<A, B>[src]

type Item = A::Item

Loading content...

Implementors

impl Consumer for Never[src]

type Item = Self

impl<A: Consumer, B: Consumer<Item = A::Item>> Consumer for ChainConsumer<A, B>[src]

type Item = A::Item

impl<C: Consumer, F> Consumer for FilterConsumer<C, F> where
    F: FnMut(&C::Item) -> bool + Clone
[src]

type Item = C::Item

impl<C: Consumer, F> Consumer for InspectConsumer<C, F> where
    F: FnMut(&C::Item) + Clone
[src]

type Item = C::Item

impl<C: Consumer, F> Consumer for UpdateConsumer<C, F> where
    F: FnMut(&mut C::Item) + Clone
[src]

type Item = C::Item

impl<C: Consumer, F, R> Consumer for MapConsumer<C, F> where
    F: FnMut(C::Item) -> R + Clone
[src]

type Item = R

impl<C: Consumer, F: FnMut(C::Item) -> R + Clone, R: IntoIterator> Consumer for FlatMapConsumer<C, F>[src]

type Item = R::Item

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

type Item = T

impl<T: 'static> Consumer for ImplConsumer<T>[src]

type Item = T

Loading content...