pub trait AggregateExt: Aggregate {
// Provided method
fn fold<I>(
state: Self::State,
events: I,
) -> Result<Self::State, Self::Error>
where I: Iterator<Item = Self::Event> { ... }
}
Expand description
Extension trait with some handy methods to use with Aggregate
s.
Provided Methods§
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.