[][src]Trait amadeus::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, B> Consumer for Sum2<A, B> where
    A: Consumer,
    B: Consumer<Item = <A as Consumer>::Item>, 
[src]

type Item = <A as Consumer>::Item

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

type Item = T

Loading content...

Implementors

impl Consumer for Never[src]

type Item = Never

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

type Item = <A as Consumer>::Item

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

type Item = <C as Consumer>::Item

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

type Item = <C as Consumer>::Item

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

type Item = <C as Consumer>::Item

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

type Item = <R as IntoIterator>::Item

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

type Item = R

impl<I, T, E, U> Consumer for IntoConsumer<I, U> where
    I: Consumer<Item = Result<T, E>>,
    T: Into<U>, 
[src]

type Item = Result<U, E>

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

type Item = T

Loading content...