[][src]Module moxie::state

State variables are memoized values that can be updated, signalling the runtime that a new Revision should be executed.

Structs

Key

A Key offers access to a state variable. The key allows reads of the state variable through a snapshot taken when the Key was created. Writes are supported with Key::update and Key::set.

Functions

memo_state

Root a state variable at this callsite, returning a Key to the state variable. Re-initializes the state variable if the capture arg changes.

state

Root a state variable at this callsite, returning a Key to the state variable.