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§

Value Store

Required Methods§

Add an element to the ValueWriter

Close the ValueWriter, returning the store

Provided Methods§

Writes an iterator to the ValueWriter

Implementations on Foreign Types§

Implementors§