Struct hooks::LazyPinnedWith
source · pub struct LazyPinnedWith<T> { /* private fields */ }Trait Implementations
sourceimpl<T: Debug> Debug for LazyPinnedWith<T>
impl<T: Debug> Debug for LazyPinnedWith<T>
sourceimpl<T> Default for LazyPinnedWith<T>
impl<T> Default for LazyPinnedWith<T>
sourceimpl<T, F: FnOnce() -> T> Hook<(F,)> for LazyPinnedWith<T>
impl<T, F: FnOnce() -> T> Hook<(F,)> for LazyPinnedWith<T>
fn use_hook<'hook>(
self: Pin<&'hook mut Self>,
(get_initial_value): (F,)
) -> <Self as HookLifetime<'hook, (F,)>>::Valuewhere
Self: 'hook,
sourceimpl<T> HookBounds for LazyPinnedWith<T>
impl<T> HookBounds for LazyPinnedWith<T>
type Bounds = LazyPinnedWith<T>
sourceimpl<'hook, T, F: FnOnce() -> T> HookLifetime<'hook, (F,), &'hook LazyPinnedWith<T>> for LazyPinnedWith<T>
impl<'hook, T, F: FnOnce() -> T> HookLifetime<'hook, (F,), &'hook LazyPinnedWith<T>> for LazyPinnedWith<T>
type Value = Pin<&'hook mut T>
sourceimpl<T> HookPollNextUpdate for LazyPinnedWith<T>
impl<T> HookPollNextUpdate for LazyPinnedWith<T>
impl<'__pin, T> Unpin for LazyPinnedWith<T>where
__Origin<'__pin, T>: Unpin,
Auto Trait Implementations
impl<T> RefUnwindSafe for LazyPinnedWith<T>where
T: RefUnwindSafe,
impl<T> Send for LazyPinnedWith<T>where
T: Send,
impl<T> Sync for LazyPinnedWith<T>where
T: Sync,
impl<T> UnwindSafe for LazyPinnedWith<T>where
T: UnwindSafe,
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].