Skip to main content

with_state

Function with_state 

Source
fn with_state<R>(f: impl FnOnce(&mut State) -> R) -> R