Function dunge::update

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

Helper function to create a Update implementer from functions.