Trait hooks_core::HookExt
source · pub trait HookExt<Args>: Hook<Args> {
fn use_hook(&mut self, args: Args) -> <Self as HookLifetime<'_, Args>>::Value
where
Self: Unpin,
{ ... }
fn next_value(&mut self, args: Args) -> NextValue<'_, Self, Args> ⓘ
where
Self: Unpin,
{ ... }
fn next_value_with<F: FnOnce(Pin<&mut Self>) -> Args>(
&mut self,
get_args: F
) -> NextValueWith<'_, Self, Args, F> ⓘ
where
Self: Unpin,
{ ... }
fn next_value_with_default_args(
&mut self
) -> NextValueWithDefaultArgs<'_, Self, Args> ⓘ
where
Self: Unpin,
Args: Default,
{ ... }
}
Provided Methods§
sourcefn use_hook(&mut self, args: Args) -> <Self as HookLifetime<'_, Args>>::Valuewhere
Self: Unpin,
fn use_hook(&mut self, args: Args) -> <Self as HookLifetime<'_, Args>>::Valuewhere
Self: Unpin,
A shortcut to call Hook::use_hook
on Unpin hooks.