Skip to main content

Module runtime

Module runtime 

Source

Re-exports§

pub use entity_layout::ENTITY_LAYOUTS;
pub use entity_layout::EntityFieldKind;
pub use entity_layout::EntityFieldLayout;
pub use entity_layout::EntityLayout;
pub use entity_layout::entity_layout;

Modules§

entity_layout
Auto-generated from doc/scripting/entity_registry.org. Do not edit manually — edit the org file + cargo build.

Structs§

Closure
ClosureSource
A lambda as it stood where a unit made a closure of it. The closure value holds its site, the index of its source among the unit’s, and an environment with one field per entry of fields.
Pair
Rebind
Exported i32 depth counts the dynamic bindings of a special in force; entering the outermost one stores the special’s value in outer and its bound flag in outer_bound.
StructInstance
A live instance: its layout and the constant of each field.
Symbol
A name with its two cells: the variable it names and the function it names.
SymbolTable
UnitSlot
A slot the finished unit wrote: flags are the exported i32 globals, one per definition form in text order, each 1 once that form ran, cell the global a value slot holds its value in at run time, rebind the globals that say which value it holds outside a binding when a binder rebinds it.

Enums§

Carried
A unit global read back by the host.
Slot
Which slot of a name a definition fills: a variable’s value, the function (or macro) it names, or the field layout of the structure it names.
SymbolKind
Value

Functions§

format_amount
A money amount: an integer when whole, else n/d.
format_value
format_value_display
Prints value for a display cell: as the readable form, but a whole scalar as its integer.
format_value_plain
Prints value as PRINT does: strings bare at every depth.
list_to_vec
vec_to_list

Type Aliases§

Found
What a host read of one instance after a unit: its fields, or None when it holds a value no constant holds (a closure, an entity, compound money).
Fraction