INNER CODE UNIT · Rust
apply
thalo-rs/thalo · crates/thalo/src/lib.rs:163
fn apply(&mut self, event: E);
}
#[doc(hidden)]
pub struct State<T>(pub T);
impl<T> Aggregate for State<T>
where
T: Aggregate,
{
type Command = T::Command;
type Event = T::Event;
fn init(id: String) -> Self {
State(T::init(id))
}
}