pub struct RegModule {Show 17 fields
pub funcs: Vec<RegFunc>,
pub exports: Vec<RegExport>,
pub imported_func_count: u32,
pub imported_funcs: Vec<RegImport>,
pub imported_memories: Vec<RegMemoryImport>,
pub imported_globals: Vec<RegGlobalImport>,
pub imported_tables: Vec<RegTableImport>,
pub start: Option<FuncIdx>,
pub memories: Vec<MemType>,
pub globals: Vec<RegGlobal>,
pub tables: Vec<TableType>,
pub elements: Vec<RegElement>,
pub types: Vec<FuncType>,
pub data: Vec<RegDataSegment>,
pub imported_memory_count: u32,
pub imported_global_count: u32,
pub imported_table_count: u32,
}Expand description
A validated module lowered into register IR.
Fields§
§funcs: Vec<RegFunc>§exports: Vec<RegExport>§imported_func_count: u32Number of imported functions: FuncIdx values below this are not
lowered and cannot be called by the interpreter yet.
imported_funcs: Vec<RegImport>Function import declarations in index order (for host-function registration and lazy import resolution).
imported_memories: Vec<RegMemoryImport>Memory import declarations in index order.
imported_globals: Vec<RegGlobalImport>Global import declarations in index order.
imported_tables: Vec<RegTableImport>Table import declarations in index order.
start: Option<FuncIdx>The start function, if the module declares one.
memories: Vec<MemType>Defined memories (instantiated as zeroed linear memory).
globals: Vec<RegGlobal>Defined globals, initialized in declaration order at instantiation.
tables: Vec<TableType>Defined tables (instantiated as null-filled reference arrays).
elements: Vec<RegElement>Element segments in index order; mode decides instantiation behavior.
types: Vec<FuncType>All function types in the module’s type section, for structural
call_indirect type checks.
data: Vec<RegDataSegment>All data segments in index order; mode decides instantiation behavior.
imported_memory_count: u32Number of imported memories (runtime access is not yet supported).
imported_global_count: u32Number of imported globals (runtime access is not yet supported).
imported_table_count: u32Number of imported tables (runtime access is not yet supported).