Crate atomic_hooks

Source

Re-exports§

pub use crate::unmount::StateAccessUnmount;
pub use crate::unmount::Unmount;
pub use topo;
pub use illicit;

Modules§

unmount

Structs§

CallSite
A value unique to the source location where it is created.
FilterVec
Local
Reaction
ReactiveContext
ReactiveStateAccess
Accessor struct that provides access to getting and setting the state of the stored type
StateAccess
Accessor struct that provides access to getting and setting the state of the stored type
TopoKey
UndoVec

Enums§

AllowUndo
IsAReactionState
IsAnAtomState
NoUndo

Traits§

ChangedAtomState
ChangedState
CloneReactiveState
CloneState
Observable
ObservableVec
OverloadedUpdateStateAccess

Functions§

atom
atom_with_undo
clone_reactive_state_with_id
Clones the state of type T keyed to the given TopoId
clone_state_with_topo_id
Clones the state of type T keyed to the given TopoId
do_once
call the provided function once and once only returns a unmmunt which will allow the do_once to repeat if .execute_if_activated() is called on the unmount. Example
execute_and_remove_unmounts
new_state
on_unmount
reaction
reactive_state_exists_for_id
remove_reactive_state_with_id
reset_unseen_id_list
Rudamentary Garbage Collection purges all unseen ids’ state then resets the suneen ids list. Rudamentary Garbage Collection
return_key_for_type_and_insert_if_required
set_inert_atom_state_with_id
Sets the state of type T keyed to the given TopoId
set_state_with_topo_id
Sets the state of type T keyed to the given TopoId
state_exists_for_topo_id
try_read_reactive_state_with_id
unlink_dead_links
unseen_ids
update_atom_state_with_id
update_state_with_topo_id
Provides mutable access to the stored state type T.
use_state
Constructs a T accessor. T is stored keyed to the current topological context. The accessor always references this context therefore can you can set/update/ or get this T from anywhere.
use_state_current
Uses the current topological id to create a new state accessor

Attribute Macros§

atom
Exports the following:
reaction
Exports the following: