pub struct ModuleTranslationState {
pub wasm_types: PrimaryMap<SignatureIndex, (Box<[Type]>, Box<[Type]>)>,
}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.
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.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModuleTranslationState
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