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

Contains information decoded from the Wasm module that must be referenced during each Wasm function’s translation.

This is only for data that is maintained by cranelift-wasm itself, as opposed to being maintained by the embedder. Data that is maintained by the embedder is represented with ModuleEnvironment.

Implementations§

Creates a new empty ModuleTranslationState.

Create a new ModuleTranslationState with the given function signatures, provided in terms of Cranelift types. The provided slice of signatures is indexed by signature number, and contains pairs of (args, results) slices.

Trait Implementations§

Formats the value using the given formatter. Read more

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 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.