[][src]Module comp_state::prelude

Re-exports

pub use topo;

Structs

StateAccess

Accessor struct that provides access to getting and setting the state of the stored type

Functions

clone_state

Clones the state of a type keyed to the current topological context

do_once

call the provided function once and once only

get_state_with_topo_id

Clones the state of type T keyed to the given TopoId

purge_and_reset_unseen_ids

Rudamentary Garbage Collection purges all unseen ids' state then resets the suneen ids list.

set_state

sets the state of type T keyed to the local context.

set_state_with_topo_id

Sets the state of type T keyed to the given TopoId

update_state_with_topo_id

Provides mutable access to the stored state type T.

use_istate

use_istate() - create a new internal state.

use_state

Constructs a T and T accessor pair. 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.