Trait hooks_core::HookExt

source ·
pub trait HookExt: Hook {
    // Provided methods
    fn use_hook(&mut self) -> <Self as HookValue<'_>>::Value
       where Self: Unpin { ... }
    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 { ... }
}
Expand description

Extend Hook with convenient methods.

Provided Methods§

source

fn use_hook(&mut self) -> <Self as HookValue<'_>>::Value
where Self: Unpin,

A shortcut to call Hook::use_hook on Unpin hooks.

source

fn next_value(&mut self) -> NextValue<'_, Self>
where Self: Unpin,

source

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

source

fn values(&mut self) -> Values<&mut Self>
where Self: Unpin,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<H: Hook + ?Sized> HookExt for H