Trait HookExt

Source
pub trait HookExt: 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,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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