Module hotdrink_rs::model[][src]

Data types used for representing constraint systems, with the most important ones being the following:

  1. ConstraintSystem
  2. Component
  3. Constraint
  4. Method

As well as other types used in the API.

Modules

undo

Errors for undo and redo.

Structs

Activation

Represents a value that may not be done being computed. Once the value has been computed, it will be stored in its shared state. Should be used as a Future, and can be awaited in async code.

Component

A collection of variables along with constraints that should be maintained between them. Variables can get new values, values can be retrieved from the component, and the constraints can be enforced. Subscribing to variables will send a notification when the new values are ready.

Constraint

Represents a constraint in a multiway dataflow constraint system. It has a name, a set of variables it references, a set of Methods to enforce it, and an optional assertion to run to ensure that it is actually enforced upon running a method.

ConstraintSystem

A container for Components.

Method

A method for enforcing a Constraint. It usually has a set of input-variables, a set of output-variables, and a function for creating the outputs from the inputs.

Variable

A variable that maintains its previous values.

Type Definitions

Value

The resulting value of a Activation.