Function ambient_element::use_state_with
source · pub fn use_state_with<T: Clone + Debug + Send + 'static>(
hooks: &mut Hooks<'_>,
init: impl FnOnce(&mut World) -> T
) -> (T, Setter<T>)
pub fn use_state_with<T: Clone + Debug + Send + 'static>(
hooks: &mut Hooks<'_>,
init: impl FnOnce(&mut World) -> T
) -> (T, Setter<T>)