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§
sourcefn use_hook(&mut self) -> Self::Valuewhere
Self: Unpin,
fn use_hook(&mut self) -> Self::Valuewhere
Self: Unpin,
A shortcut to call Hook::use_hook on Unpin hooks.
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,
Object Safety§
This trait is not object safe.