Struct wasmer_runtime_fl::Module [−][src]
pub struct Module { /* fields omitted */ }
Expand description
A compiled WebAssembly module.
Module
is returned by the compile_with
function.
Implementations
Instantiate a WebAssembly module with the provided ImportObject
.
Note:
Instantiating a Module
will also call the function designated as start
in the WebAssembly module, if there is one.
Usage:
let import_object = imports! { // ... }; let instance = module.instantiate(&import_object)?; // ...
Get the module data for this module.
Get the ExportDescriptor
s of the exports this Module
provides.
Get the ImportDescriptor
s describing the imports this Module
requires to be instantiated.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Module
impl !UnwindSafe for Module
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self