Macro hooks_core::impl_hook
source · macro_rules! impl_hook {
(
impl $([ $($impl_generics:tt)* ])? for $ty:ty $(where [$($where:tt)*])? {
$(#[$meta_poll:meta])*
$poll_next_update:ident($($pat_args_poll:tt)*) $impl_poll:block
$(
$(#[$meta_use:meta])*
$use_hook:ident
$({$($args_lifetimes:tt)*})?
$([$($args_generics:tt)*])?
( $self_0:ident $($self_1:ident)? $(, $arg_pat:ident : $arg_ty:ty)* $(,)? ) -> $value:ty $impl_use_hook:block
)*
}
) => { ... };
}