Crate hooks_core

Source

Modules§

fn_hook
prelude

Macros§

Hook
Expands to an opaque type impl Hook with type of Value.
UpdateHookUninitialized
Expands to an opaque type impl UpdateHookUninitialized with type of Hook::Value.
h
This macro should only be used in hook_fn or #[hook].
hook_fn
Write hook fn without any proc-macro.
impl_hook
Easily impl traits.
transform_hook_fn_body_as_closure

Structs§

HookTuple
NextUpdate
A future which polls HookPollNextUpdate::poll_next_update. See HookExt::next_update.
NextValue
A future which outputs the next value of the hook. See HookExt::next_value.
Values
A stream of hook values. See HookExt::into_values and HookExt::values

Traits§

Captures
The Captures trick
Hook
Defines how to use a hook (get value from the hook).
HookExt
Extend Hook with convenient methods.
HookPollNextUpdate
Defines reactivity of a hook.
HookPollNextUpdateExt
Extend HookPollNextUpdate with convenient methods.
HookUnmount
Defines how to cleanup a hook.
HookValue
A helper trait to define lifetime generic associated types (lifetime-GAT) for Hook.
HookValueBounds
IntoHook
NonLendingHook
NonLendingHook is a subset of Hook. Value of NonLendingHook is not generic, thus not borrowing from the hook. In other words, NonLendingHook doesn’t lend to its Value.
UpdateHook
UpdateHookUninitialized

Type Aliases§

Value
Type alias for HookValue::Value.