[][src]Trait para::Mapper

pub trait Mapper<I, O>: Sized {
    fn map(&self, input: I) -> O;

    fn pipe<C: Consumer<'a, O>, 'a>(
        self,
        consumer: &'a C
    ) -> Map<'a, I, O, Self, C> { ... } }

Required methods

fn map(&self, input: I) -> O

Loading content...

Provided methods

fn pipe<C: Consumer<'a, O>, 'a>(self, consumer: &'a C) -> Map<'a, I, O, Self, C>

Loading content...

Implementations on Foreign Types

impl<I, O, F: FnMut(I) -> O> Mapper<I, O> for Mutex<F>[src]

Loading content...

Implementors

impl<I, O, F: Fn(I) -> O> Mapper<I, O> for F[src]

Loading content...