update

Function update 

Source
pub fn update(state: &mut State, cmd: Command, ctx: &Ctx) -> Vec<Event>