Trait hooks_core::erased_hook::ErasedHook
source · pub trait ErasedHook<Args>: HookPollNextUpdate {
type ValueGat: ?Sized + for<'hook> ValueGat<'hook>;
fn erased_use_hook<'hook>(
self: Pin<&'hook mut Self>,
args: Args
) -> <Self::ValueGat as ValueGat<'hook>>::Value;
}
Expand description
This trait follows the Dyn safety section of better GAT pattern.