Skip to main content

Module value

Module value 

Source
Expand description

Runtime value representation for the Bock interpreter.

Every Bock type maps to a Value variant. Collections that require ordering (BTreeMap, BTreeSet) are supported via OrdF64, a total-order wrapper for f64.

Structs§

BockString
An Bock string value.
ChannelHandle
Shared state for an unbounded MPSC channel of Values.
EnumValue
An enum (sum type) value: a named variant with an optional payload.
FnValue
A function value.
IteratorValue
A lazy iterator value.
OrdF64
A total-order wrapper for f64.
RecordValue
A record (struct) value: a named type with named fields.

Enums§

IteratorKind
The internal state of a lazy iterator.
IteratorNext
Result of calling IteratorKind::next.
Value
A runtime value in the Bock interpreter.

Type Aliases§

FutureHandle
Shared handle to a spawned async task. See Value::Future.