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> { ... }
}
fn map(&self, input: I) -> O
Loading content...fn pipe<C: Consumer<'a, O>, 'a>(self, consumer: &'a C) -> Map<'a, I, O, Self, C>
Loading content...Loading content...impl<I, O, F: Fn(I) -> O> Mapper<I, O> for F
[src]
Loading content...