pub trait Projection {
type State;
type Event;
// Required methods
fn initial() -> Self::State;
fn apply(state: Self::State, event: &Self::Event) -> Self::State;
}Expand description
Fold an ordered event stream into aggregate state.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".