Skip to main content

Module id

Module id 

Source
Expand description

Stable ids and the Symbol type used across the kernel.

Defines the typed id wrappers (lib, class, codec, shape, …), the well-known core class ids, and the symbol contract that names every runtime entity. Symbols are reference-counted (Arc<str>) rather than interned: there is no global dedup table, so equal names may back distinct allocations.

Structs§

CaseId
Stable id of a single overload case within a function.
ClassId
Stable id of a registered class.
CodecId
Stable id of a registered codec.
FunctionId
Stable id of a registered function.
LibId
Stable id of a loaded library.
MacroId
Stable id of a registered macro.
NumberDomainId
Stable id of a registered number domain.
ShapeId
Stable id of a registered shape.
SiteId
Stable id of a registered opaque site value.
Symbol
An optionally namespaced name for a runtime entity.
ValueId
Process-local id of a runtime value.

Enums§

RuntimeId
Tagged union over the stable id kinds a runtime entity may carry.
SymbolError
Reason a name was rejected by Symbol::checked.

Constants§

CORE_BOOL_CLASS_ID
ClassId of the core bool class.
CORE_BYTES_CLASS_ID
ClassId of the core bytes class.
CORE_CARD_CLASS_ID
ClassId of the core card class.
CORE_CLASS_CLASS_ID
ClassId of the core class metaclass.
CORE_CODEC_CLASS_ID
ClassId of the core codec class.
CORE_EVAL_REPLY_CLASS_ID
ClassId of the core eval-reply class.
CORE_EVAL_REQUEST_CLASS_ID
ClassId of the core eval-request class.
CORE_EXPR_CLASS_ID
ClassId of the core expr class.
CORE_FUNCTION_CLASS_ID
ClassId of the core function class.
CORE_HELP_CLASS_ID
ClassId of the core help class.
CORE_LIST_CLASS_ID
ClassId of the core list class.
CORE_LOCAL_EVAL_FABRIC_CLASS_ID
ClassId of the core local eval-fabric class.
CORE_MACRO_CLASS_ID
ClassId of the core macro class.
CORE_NIL_CLASS_ID
ClassId of the core nil class.
CORE_NUMBER_CLASS_ID
ClassId of the core number class.
CORE_NUMBER_DOMAIN_CLASS_ID
ClassId of the core number-domain class.
CORE_SEQUENCE_CLASS_ID
ClassId of the core sequence class.
CORE_SHAPE_CLASS_ID
ClassId of the core shape class.
CORE_SHAPE_MATCH_CLASS_ID
ClassId of the core shape-match class.
CORE_STRING_CLASS_ID
ClassId of the core string class.
CORE_SYMBOL_CLASS_ID
ClassId of the core symbol class.
CORE_TABLE_CLASS_ID
ClassId of the core table class.
CORE_TEST_CLASS_ID
ClassId of the core test class.
CORE_THUNK_CLASS_ID
ClassId of the core thunk class.