Struct wasmtime_environ::CompiledModuleInfo
source · pub struct CompiledModuleInfo {
pub module: Module,
pub funcs: PrimaryMap<DefinedFuncIndex, CompiledFunctionInfo>,
pub func_names: Vec<FunctionName>,
pub wasm_to_native_trampolines: Vec<(ModuleInternedTypeIndex, FunctionLoc)>,
pub meta: Metadata,
}
Expand description
Secondary in-memory results of module compilation.
This opaque structure can be optionally passed back to
CompiledModule::from_artifacts
to avoid decoding extra information there.
Fields§
§module: Module
Type information about the compiled WebAssembly module.
funcs: PrimaryMap<DefinedFuncIndex, CompiledFunctionInfo>
Metadata about each compiled function.
func_names: Vec<FunctionName>
Sorted list, by function index, of names we have for this module.
wasm_to_native_trampolines: Vec<(ModuleInternedTypeIndex, FunctionLoc)>
Metadata about wasm-to-native trampolines. Used when exposing a native
callee (e.g. Func::wrap
) to a Wasm caller. Sorted by signature index.
meta: Metadata
General compilation metadata.
Trait Implementations§
source§impl<'de> Deserialize<'de> for CompiledModuleInfo
impl<'de> Deserialize<'de> for CompiledModuleInfo
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CompiledModuleInfo
impl RefUnwindSafe for CompiledModuleInfo
impl Send for CompiledModuleInfo
impl Sync for CompiledModuleInfo
impl Unpin for CompiledModuleInfo
impl UnwindSafe for CompiledModuleInfo
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