Struct hooks::StateEqWith
source · Trait Implementations
sourceimpl<'a, T: PartialEq, const N: usize, F: FnOnce() -> T> Hook<(F,)> for StateEqWith<'a, T, N>
impl<'a, T: PartialEq, const N: usize, F: FnOnce() -> T> Hook<(F,)> for StateEqWith<'a, T, N>
fn use_hook<'hook>(
self: Pin<&'hook mut Self>,
(get_initial_state): (F,)
) -> <Self as HookLifetime<'hook, (F,)>>::Valuewhere
Self: 'hook,
sourceimpl<'a, T: PartialEq, const N: usize> HookBounds for StateEqWith<'a, T, N>
impl<'a, T: PartialEq, const N: usize> HookBounds for StateEqWith<'a, T, N>
type Bounds = StateEqWith<'a, T, N>
sourceimpl<'hook, 'a, T: PartialEq, const N: usize, F: FnOnce() -> T> HookLifetime<'hook, (F,), &'hook StateEqWith<'a, T, N>> for StateEqWith<'a, T, N>
impl<'hook, 'a, T: PartialEq, const N: usize, F: FnOnce() -> T> HookLifetime<'hook, (F,), &'hook StateEqWith<'a, T, N>> for StateEqWith<'a, T, N>
type Value = (&'hook mut T, &'hook StateUpdater<'a, T, N>)
sourceimpl<'a, T: PartialEq, const N: usize> HookPollNextUpdate for StateEqWith<'a, T, N>
impl<'a, T: PartialEq, const N: usize> HookPollNextUpdate for StateEqWith<'a, T, N>
impl<'a, T: PartialEq, const N: usize> Unpin for StateEqWith<'a, T, N>
Auto Trait Implementations
impl<'a, T, const N: usize = STAGING_STATES_DEFAULT_STACK_COUNT> !RefUnwindSafe for StateEqWith<'a, T, N>
impl<'a, T, const N: usize = STAGING_STATES_DEFAULT_STACK_COUNT> !Send for StateEqWith<'a, T, N>
impl<'a, T, const N: usize = STAGING_STATES_DEFAULT_STACK_COUNT> !Sync for StateEqWith<'a, T, N>
impl<'a, T, const N: usize = STAGING_STATES_DEFAULT_STACK_COUNT> !UnwindSafe for StateEqWith<'a, T, N>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Args, H> HookExt<Args> for Hwhere
H: Hook<Args> + ?Sized,
impl<Args, H> HookExt<Args> for Hwhere
H: Hook<Args> + ?Sized,
sourcefn use_hook(&mut self, args: Args) -> Self::Valuewhere
Self: Unpin,
fn use_hook(&mut self, args: Args) -> Self::Valuewhere
Self: Unpin,
A shortcut to call
Hook::use_hook on Unpin hooks.fn next_value(&mut self, args: Args) -> NextValue<'_, Self, Args>where
Self: Unpin,
fn next_value_with<F>(&mut self, get_args: F) -> NextValueWith<'_, Self, Args, F>where
F: FnOnce(Pin<&mut Self>) -> Args,
Self: Unpin,
fn next_value_with_default_args(
&mut self
) -> NextValueWithDefaultArgs<'_, Self, Args>where
Self: Unpin,
Args: Default,
sourceimpl<H> HookPollNextUpdateExt for Hwhere
H: HookPollNextUpdate + ?Sized,
impl<H> HookPollNextUpdateExt for Hwhere
H: HookPollNextUpdate + ?Sized,
sourcefn poll_next_update(&mut self, cx: &mut Context<'_>) -> Poll<bool>where
Self: Unpin,
fn poll_next_update(&mut self, cx: &mut Context<'_>) -> Poll<bool>where
Self: Unpin,
A shortcut to call [
Hook::poll_next_update] on Unpin hooks.sourcefn next_update(&mut self) -> NextUpdate<'_, Self>where
Self: Unpin,
fn next_update(&mut self) -> NextUpdate<'_, Self>where
Self: Unpin,
Get a future which polls [
Hook::poll_next_update].