Struct rs_transducers::transducers::KeepReducer
[−]
[src]
pub struct KeepReducer<R, F> { /* fields omitted */ }
Trait Implementations
impl<R, F, I, O, OF, E> Reducing<I, OF, E> for KeepReducer<R, F> where
F: Fn(I) -> Option<O>,
R: Reducing<O, OF, E>,
[src]
F: Fn(I) -> Option<O>,
R: Reducing<O, OF, E>,
type Item = O
The type of each value after the reducing function
fn init(&mut self)
Transducers must call the underlying init
TODO: may not be required at all. Not currently used by any implementation Read more
fn step(&mut self, value: I) -> Result<StepResult, E>
Each step, may fail TODO: the return type to contain an indicator of early termination Read more
fn complete(&mut self) -> Result<(), E>
Transducers must call the underlying complete