[][src]Struct wasmer_clif_fork_wasm::ModuleTranslationState

pub struct ModuleTranslationState {
    pub wasm_types: PrimaryMap<SignatureIndex, (Box<[Type]>, Box<[Type]>)>,
}

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.

Fields

wasm_types: PrimaryMap<SignatureIndex, (Box<[Type]>, Box<[Type]>)>

A map containing a Wasm module's original, raw signatures.

This is used for translating multi-value Wasm blocks inside functions, which are encoded to refer to their type signature via index.

Methods

impl ModuleTranslationState[src]

pub fn new() -> Self[src]

Creates a new empty ModuleTranslationState.

Trait Implementations

impl Debug for ModuleTranslationState[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.