Trait winnow::stream::Accumulate
source · pub trait Accumulate<T>: Sized {
// Required methods
fn initial(capacity: Option<usize>) -> Self;
fn accumulate(&mut self, acc: T);
}
Expand description
Abstracts something which can extend an Extend
.
Used to build modified input slices in escaped_transform
Required Methods§
sourcefn accumulate(&mut self, acc: T)
fn accumulate(&mut self, acc: T)
Accumulate the input into an accumulator
Object Safety§
This trait is not object safe.