Struct wasmer_compiler::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 wasmer-compiler
itself, as
opposed to being maintained by the embedder. Data that is maintained by the
embedder is represented with ModuleEnvironment
.
Implementations
sourceimpl ModuleTranslationState
impl ModuleTranslationState
sourcepub fn blocktype_params_results(
&self,
ty_or_ft: TypeOrFuncType
) -> WasmResult<(&[Type], &[Type])>
pub fn blocktype_params_results(
&self,
ty_or_ft: TypeOrFuncType
) -> WasmResult<(&[Type], &[Type])>
Get the parameter and result types for the given Wasm blocktype.
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
sourceimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcepub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more