Skip to main content

update

Function update 

Source
pub fn update(state: &mut State, cmd: Command, ctx: &Ctx) -> Reduced
Expand description

Apply one Command to State, returning the resulting Events and any diagnostic log lines. State is mutated in place. Total function — never panics on input (panics are reserved for internal invariant violations).