Trait hooks_core::IntoHook

source ·
pub trait IntoHook {
    type Hook: Hook;

    // Required method
    fn into_hook(self) -> Self::Hook;

    // Provided method
    fn into_hook_values(self) -> Values<Self::Hook>
       where Self: Sized { ... }
}

Required Associated Types§

Required Methods§

source

fn into_hook(self) -> Self::Hook

Provided Methods§

source

fn into_hook_values(self) -> Values<Self::Hook>where Self: Sized,

Implementors§

source§

impl<H> IntoHook for Hwhere H: Hook,

§

type Hook = H

source§

impl<InnerHook, U> IntoHook for UseFnHook<InnerHook, U>where InnerHook: Default + HookPollNextUpdate + HookUnmount, U: for<'hook> FnMutOneArg<Pin<&'hook mut InnerHook>>,

§

type Hook = FnHook<InnerHook, U, bool>