Re-exports§
pub use crate::unmount::StateAccessUnmount;
pub use crate::unmount::Unmount;
pub use topo;
pub use illicit;
Modules§
Structs§
- Call
Site - A value unique to the source location where it is created.
- Filter
Vec - Local
- Reaction
- Reactive
Context - Reactive
State Access - Accessor struct that provides access to getting and setting the state of the stored type
- State
Access - Accessor struct that provides access to getting and setting the state of the stored type
- TopoKey
- UndoVec
Enums§
Traits§
- Changed
Atom State - Changed
State - Clone
Reactive State - Clone
State - Observable
- Observable
Vec - Overloaded
Update State Access
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