Trait tange_collection::interfaces::ValueWriter
source · pub trait ValueWriter<A>: Sized {
type Out: Accumulator<A>;
fn add(&mut self, item: A);
fn finish(self) -> Self::Out;
fn extend<I: Iterator<Item = A>>(&mut self, i: &mut I) { ... }
}
Expand description
ValueWriters write Values into some internal state. When finished, yields some construct that ‘contains’ the output.
Required Associated Types§
sourcetype Out: Accumulator<A>
type Out: Accumulator<A>
Value Store