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