Skip to main content

Module functions

Module functions 

Source
Expand description

Documented native functions supplied by the Rust interpreter.

This module is the single description of the native function surface. The checker still owns polymorphic specialization, but concrete function values are constructed from the signatures below instead of a second name match.

Structs§

FunctionDescriptor
Documentation and, where applicable, the concrete function-value signature for one Rust interpreter builtin.

Constants§

ADD
Adds a record component to an existing entity.
BIND
Binds a concrete entity component so extracted methods can update that live component transactionally.
BUILTIN_NAMES
Every global native name reserved by the interpreter.
BYTES
Builds immutable bytes from checked unsigned 8-bit values.
DESPAWN
Schedules an entity for removal when the current initializer, callback, or action completes.
GET
Reads a typed component copy from an entity; the entity must have that component.
HAS
Tests whether an entity has the selected concrete component type.
IGNORE_NUMBER
Accepts and ignores one Number; useful as a default slider callback.
NOOP
Does nothing and returns a successful Unit result; useful as a default zero-argument callback.
PRINT
Appends a bounded textual rendering of a value to the machine log without external I/O.
QUERY
Returns entity identities that have the selected type or implement the selected trait.
RANGE
Creates a bounded sequence of exactly representable integer Numbers from start inclusive to end exclusive.
SET
Replaces an existing record component on an entity.
SPAWN
Creates an entity with one record component and returns its opaque identity.
TENSOR
Constructs packed numeric data with explicit dimensions.