Struct cranelift_wasm::ModuleTranslationState
source · 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§
source§impl ModuleTranslationState
impl ModuleTranslationState
sourcepub fn from_func_sigs(sigs: &[(&[Type], &[Type])]) -> WasmResult<Self>
pub fn from_func_sigs(sigs: &[(&[Type], &[Type])]) -> WasmResult<Self>
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§
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more