Enum cranelift_wasm::wasmparser::Instance
source · pub enum Instance<'a> {
Module {
index: u32,
args: Box<[ModuleArg<'a>], Global>,
},
Component {
index: u32,
args: Box<[ComponentArg<'a>], Global>,
},
ModuleFromExports(Box<[Export<'a>], Global>),
ComponentFromExports(Box<[ComponentExport<'a>], Global>),
}
Expand description
Represents an instance in a WebAssembly component.
Variants§
Module
Fields
The instance is from instantiating a WebAssembly module.
Component
Fields
§
args: Box<[ComponentArg<'a>], Global>
The component’s instantiation arguments.
The instance is from instantiating a WebAssembly component.
ModuleFromExports(Box<[Export<'a>], Global>)
The instance is a module instance from exporting local items.
ComponentFromExports(Box<[ComponentExport<'a>], Global>)
The instance is a component instance from exporting local items.