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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.