[][src]Module reax::computed

All the types and traits needed for storing and updating lazily computed variables.

The key type in this module is ComputedVar. Everything else only exists to be used within it.

Structs

ComputationHandle

Offers greater control over how the reax runtime sees the computation of a node.

ComputedVar

A lazily computed variable that is tracked by the reax runtime.

FunctionComputed

A computed T which is produced by some function F.

FunctionMapped

A computed T which is produced by some function F using the value of V.

MutatorComputed

A computed T which is initialized to some default and then mutated by some function F.

MutatorMapped

A computed T which is initalized to some default and then mutated by some function F which also takes the value of V.

Traits

ComputedValue

A trait implemented by any item which can be wrapped in a ComputedVar.

Type Definitions

BoxedComputedVar

A computed cell which is implementation agnostic. The value of the cell and captures of the cell's update function are heap-allocated.