Function ambient_api::prelude::ambient_element::use_state_with
source · pub fn use_state_with<T>(
hooks: &mut Hooks<'_>,
init: impl FnOnce(&mut World) -> T
) -> (T, Arc<CbDebuggable<dyn Fn(T) + Sync + Send>>)