Trait hooks::prelude::_

source ·
pub trait _: Hook {
    // Provided methods
    fn use_hook(&mut self) -> Self::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::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> HookExt for H
where H: Hook + ?Sized,