Skip to main content

Module types

Module types 

Source

Structs§

CachedAttribute
CachedDefinition
Serializable version of Definition. Types are frozen before the cache writer is reached, so Var cannot appear. Mirrors the in-memory Definition shape: common fields up top, variant-specific data in body.
CachedEnumField
CachedEnumVariant
CachedGeneric
CachedInterface
CachedSpan
Span stored as file index + byte offsets. file_index refers to position in ModuleInterface.files array (sorted by filename). When loading from cache, file indices are remapped to newly assigned file IDs.
CachedStructField
CachedValueEnumVariant

Enums§

CachedDefinitionBody
CachedLiteral
CachedVariantFields