[][src]Function atomic_hooks::new_state

pub fn new_state<T: 'static, F: FnOnce() -> T>(data_fn: F) -> StateAccess<T>