Struct transducers::Mapping [] [src]

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]

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]

The type of step that application of the transducer produces.

Applies the transducer to the step function to obtain a new step function.