pub struct CompiledModule { /* private fields */ }
Expand description

A compiled wasm module, ready to be instantiated.

Implementations

Creates a list of compiled modules from the given list of compilation artifacts.

Creates CompiledModule directly from CompilationArtifacts.

Crate an Instance from this CompiledModule.

Note that if only one instance of this module is needed, it may be more efficient to call the top-level instantiate, since that avoids copying the data initializers.

Unsafety

See InstanceHandle::new

Extracts CompilationArtifacts from the compiled module.

Returns data initializers to pass to InstanceHandle::initialize

Return a reference-counting pointer to a module.

Return a reference to a mutable module (if possible).

Returns the map of all finished JIT functions compiled for this module

Returns the per-signature trampolines for this module.

Returns the stack map information for all functions defined in this module.

The iterator returned iterates over the span of the compiled function in memory with the stack maps associated with those bytes.

Iterates over all functions in this module, returning information about how to decode traps which happen in the function.

Returns all ranges convered by JIT code.

Returns module’s JIT code.

Creates a new symbolication context which can be used to further symbolicate stack traces.

Basically this makes a thing which parses debuginfo and can tell you what filename and line number a wasm pc comes from.

Returns whether the original wasm module had unparsed debug information based on the tunables configuration.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.