Function dunge::update_with_state

source ยท
pub fn update_with_state<S, U, F, D>(
    state: S,
    upd: U,
    draw: D,
) -> impl Update<Flow = F, Event = ()>
where U: FnMut(&mut S, &Control) -> F, F: Flow, D: Fn(&S, Frame<'_, '_>),
Expand description

Same as update but with a state shared between two handlers.