pub struct use_state_with_updater<S, U: StateUpdater<S>>(pub S, pub U);
Tuple Fields§
§0: S
initial state
1: U
initial updater
Trait Implementations§
Source§impl<T, U: StateUpdater<T>> IntoHook for UseStateWithUpdater<T, U>
impl<T, U: StateUpdater<T>> IntoHook for UseStateWithUpdater<T, U>
Source§impl<T, U: StateUpdater<T>> UpdateHook for UseStateWithUpdater<T, U>
impl<T, U: StateUpdater<T>> UpdateHook for UseStateWithUpdater<T, U>
fn update_hook(self, _hook: Pin<&mut Self::Hook>)
Source§impl<T, U: StateUpdater<T>> UpdateHookUninitialized for UseStateWithUpdater<T, U>
impl<T, U: StateUpdater<T>> UpdateHookUninitialized for UseStateWithUpdater<T, U>
type Uninitialized = UninitializedHook<StateWithUpdater<T, U>>
fn h( self, hook: Pin<&mut Self::Uninitialized>, ) -> <Self::Hook as HookValue<'_>>::Value
Auto Trait Implementations§
impl<S, U> Freeze for UseStateWithUpdater<S, U>
impl<S, U> RefUnwindSafe for UseStateWithUpdater<S, U>where
S: RefUnwindSafe,
U: RefUnwindSafe,
impl<S, U> Send for UseStateWithUpdater<S, U>
impl<S, U> Sync for UseStateWithUpdater<S, U>
impl<S, U> Unpin for UseStateWithUpdater<S, U>
impl<S, U> UnwindSafe for UseStateWithUpdater<S, U>where
S: 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