Modules§
Macros§
- Hook
- Expands to an opaque type
impl Hook
with type ofValue
. - Update
Hook Uninitialized - Expands to an opaque type
impl UpdateHookUninitialized
with type ofHook
::
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§
- Hook
Tuple - Next
Update - A future which polls
HookPollNextUpdate::poll_next_update
. SeeHookExt::next_update
. - Next
Value - A future which outputs the next value of the hook.
See
HookExt::next_value
. - Values
- A stream of hook values.
See
HookExt::into_values
andHookExt::values
Traits§
- Captures
- The Captures trick
- Hook
- Defines how to use a hook (get value from the hook).
- HookExt
- Extend
Hook
with convenient methods. - Hook
Poll Next Update - Defines reactivity of a hook.
- Hook
Poll Next Update Ext - Extend
HookPollNextUpdate
with convenient methods. - Hook
Unmount - Defines how to cleanup a hook.
- Hook
Value - A helper trait to define
lifetime generic associated types (lifetime-GAT)
for
Hook
. - Hook
Value Bounds - Into
Hook - NonLending
Hook NonLendingHook
is a subset ofHook
.Value
ofNonLendingHook
is not generic, thus not borrowing from the hook. In other words,NonLendingHook
doesn’t lend to itsValue
.- Update
Hook - Update
Hook Uninitialized
Type Aliases§
- Value
- Type alias for
HookValue::Value
.