Skip to main content

Module ids

Module ids 

Source
Expand description

Strongly-typed newtype wrappers for numeric identifiers.

These newtypes prevent accidental misuse of raw u16/u32/u64 values in different identifier domains (function IDs, string pool indices, schema IDs, etc.).

Structsยง

FunctionId
A function identifier. Indexes into BytecodeProgram::functions.
SchemaId
A type schema identifier. Indexes into the type schema registry.
StackSlotIdx
A stack slot index. Used for local variables and temporary values.
StringId
A string pool identifier. Indexes into BytecodeProgram::strings.