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§
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,
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.