Skip to main content

Module value

Module value 

Source
Expand description

Value type for the Bop interpreter.

Heap-allocating variants use newtypes with private fields. The only way to construct them is through the tracked constructors (Value::new_str, Value::new_array, Value::new_dict), which call bop_alloc. This is enforced by the type system — code outside this module cannot access the private inner fields.

Structs§

BopArray
BopDict
BopStr

Enums§

Value

Functions§

values_equal