Struct wasmtime_environ::wasm::ModuleTranslationState [−][src]
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
impl ModuleTranslationState
[src]
pub fn new() -> ModuleTranslationState
[src]
Creates a new empty ModuleTranslationState.
pub fn from_func_sigs(
sigs: &[(&[Type], &[Type])]
) -> Result<ModuleTranslationState, WasmError>
[src]
sigs: &[(&[Type], &[Type])]
) -> Result<ModuleTranslationState, WasmError>
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
impl Debug for ModuleTranslationState
[src]
Auto Trait Implementations
impl RefUnwindSafe for ModuleTranslationState
impl Send for ModuleTranslationState
impl Sync for ModuleTranslationState
impl Unpin for ModuleTranslationState
impl UnwindSafe for ModuleTranslationState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,