pub struct Mapping<'t, T: 't, U, F: Fn(U) -> T + 't> { /* fields omitted */ }
The mapping transducer that applies a function to every element.
Methods
impl<'f, T: 'f, U, F: Fn(U) -> T + 'f> Mapping<'f, T, U, F>
[src]
fn new(f: &'f F) -> Mapping<'f, T, U, F>
The mapping transducer that applies f
to every element.
Trait Implementations
impl<'t, R: 't, T: 't, U, F: Fn(U) -> T + 't> Transducer<'t, R, T, U> for Mapping<'t, T, U, F>
[src]
type Step = MappingStep<'t, R, T, F>
The type of step that application of the transducer produces.
fn apply<Step: Fn(R, T) -> R + 't>(
&self,
step: Step
) -> MappingStep<'t, R, T, F>
Applies the transducer to the step function to obtain a new step function.