Struct rs_transducers::transducers::ReplaceReducer
[−]
[src]
pub struct ReplaceReducer<RF, T> { /* fields omitted */ }
Trait Implementations
impl<'a, R, I, OF, E> Reducing<I, OF, E> for ReplaceReducer<R, I> where
I: Eq + Hash + Clone,
R: Reducing<I, OF, E>,
[src]
I: Eq + Hash + Clone,
R: Reducing<I, OF, E>,
type Item = I
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