Struct pipelines::Mapper
[−]
[src]
pub struct Mapper<In, Out, Func> where
Func: Fn(In) -> Out, { /* fields omitted */ }
A pipeline entry representing a function to be run on each value and its result to be sent down the pipeline
Methods
impl<In, Out, Func> Mapper<In, Out, Func> where
Func: Fn(In) -> Out,
[src]
Func: Fn(In) -> Out,
Make a new Mapper
out of a function
Trait Implementations
impl<In: Debug, Out: Debug, Func: Debug> Debug for Mapper<In, Out, Func> where
Func: Fn(In) -> Out,
[src]
Func: Fn(In) -> Out,
impl<In, Out, Func> PipelineEntry<In, Out> for Mapper<In, Out, Func> where
Func: Fn(In) -> Out,
[src]
Func: Fn(In) -> Out,
fn process<I: IntoIterator<Item = In>>(self, tx: Sender<Out>, rx: I)
[src]
impl<In, Out, Func> Clone for Mapper<In, Out, Func> where
Func: Fn(In) -> Out + Copy,
[src]
Func: Fn(In) -> Out + Copy,
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<In, Out, Func> Copy for Mapper<In, Out, Func> where
Func: Fn(In) -> Out + Copy,
[src]
Func: Fn(In) -> Out + Copy,