pub struct CompiledModuleInfo {
    pub module: Module,
    pub funcs: PrimaryMap<DefinedFuncIndex, CompiledFunctionInfo>,
    pub func_names: Vec<FunctionName>,
    pub wasm_to_array_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: ModuleType 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_array_trampolines: Vec<(ModuleInternedTypeIndex, FunctionLoc)>Metadata about wasm-to-array trampolines. Used when exposing a native
callee (e.g. Func::wrap) to a Wasm caller. Sorted by signature index.
meta: MetadataGeneral 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