pub struct StateWithUpdater<T, U: StateUpdater<T>> {
pub state: T,
pub updater: U,
}Fields§
§state: T§updater: UImplementations§
Source§impl<T, U: StateUpdater<T>> StateWithUpdater<T, U>
impl<T, U: StateUpdater<T>> StateWithUpdater<T, U>
Trait Implementations§
Source§impl<T: Debug, U: Debug + StateUpdater<T>> Debug for StateWithUpdater<T, U>
impl<T: Debug, U: Debug + StateUpdater<T>> Debug for StateWithUpdater<T, U>
Source§impl<T, U: StateUpdater<T>> Hook for StateWithUpdater<T, U>
impl<T, U: StateUpdater<T>> Hook for StateWithUpdater<T, U>
Source§impl<T, U: StateUpdater<T>> HookPollNextUpdate for StateWithUpdater<T, U>
impl<T, U: StateUpdater<T>> HookPollNextUpdate for StateWithUpdater<T, U>
Source§impl<T, U: StateUpdater<T>> HookUnmount for StateWithUpdater<T, U>
impl<T, U: StateUpdater<T>> HookUnmount for StateWithUpdater<T, U>
Source§impl<'hook, T, U: StateUpdater<T>> HookValue<'hook> for StateWithUpdater<T, U>
impl<'hook, T, U: StateUpdater<T>> HookValue<'hook> for StateWithUpdater<T, U>
Source§type Value = (&'hook mut T, &'hook mut U)
type Value = (&'hook mut T, &'hook mut U)
The output type of
Hook::use_hook. Read moreimpl<T, U: StateUpdater<T>> Unpin for StateWithUpdater<T, U>
Auto Trait Implementations§
impl<T, U> Freeze for StateWithUpdater<T, U>
impl<T, U> RefUnwindSafe for StateWithUpdater<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for StateWithUpdater<T, U>
impl<T, U> Sync for StateWithUpdater<T, U>
impl<T, U> UnwindSafe for StateWithUpdater<T, U>where
T: UnwindSafe,
U: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<H> HookExt for H
impl<H> HookExt for H
Source§fn use_hook(&mut self) -> Self::Valuewhere
Self: Unpin,
fn use_hook(&mut self) -> Self::Valuewhere
Self: Unpin,
A shortcut to call
Hook::use_hook on Unpin hooks.fn next_value(&mut self) -> NextValue<'_, Self>where
Self: Unpin,
fn into_values(self) -> Values<Self>where
Self: Sized,
fn values(&mut self) -> Values<&mut Self>where
Self: Unpin,
Source§impl<H> HookPollNextUpdateExt for Hwhere
H: HookPollNextUpdate + ?Sized,
impl<H> HookPollNextUpdateExt for Hwhere
H: HookPollNextUpdate + ?Sized,
Source§fn 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
HookPollNextUpdate::poll_next_update on Unpin hooks.Source§fn next_update(&mut self) -> NextUpdate<'_, Self>where
Self: Unpin,
fn next_update(&mut self) -> NextUpdate<'_, Self>where
Self: Unpin,
Get a future which polls
HookPollNextUpdate::poll_next_update.