[][src]Struct wasmtime_environ::ModuleTranslation

pub struct ModuleTranslation<'data> {
    pub target_config: TargetFrontendConfig,
    pub module: Module,
    pub function_body_inputs: PrimaryMap<DefinedFuncIndex, FunctionBodyData<'data>>,
    pub data_initializers: Vec<DataInitializer<'data>>,
    pub tunables: Tunables,
    pub module_translation: Option<ModuleTranslationState>,
}

The result of translating via ModuleEnvironment. Function bodies are not yet translated, and data initializers have not yet been copied out of the original buffer.

Fields

target_config: TargetFrontendConfig

Compilation setting flags.

module: Module

Module information.

function_body_inputs: PrimaryMap<DefinedFuncIndex, FunctionBodyData<'data>>

References to the function bodies.

data_initializers: Vec<DataInitializer<'data>>

References to the data initializers.

tunables: Tunables

Tunable parameters.

module_translation: Option<ModuleTranslationState>

The decoded Wasm types for the module.

Methods

impl<'data> ModuleTranslation<'data>[src]

pub fn func_env(&self) -> FuncEnvironment[src]

Return a new FuncEnvironment for translating a function.

Auto Trait Implementations

impl<'data> RefUnwindSafe for ModuleTranslation<'data>

impl<'data> Send for ModuleTranslation<'data>

impl<'data> Sync for ModuleTranslation<'data>

impl<'data> Unpin for ModuleTranslation<'data>

impl<'data> UnwindSafe for ModuleTranslation<'data>

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> Same<T> for T

type Output = T

Should always be Self

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.