pub struct ModuleInst<'b> {
pub types: Vec<FuncType>,
pub func_addrs: Vec<usize>,
pub table_addrs: Vec<usize>,
pub mem_addrs: Vec<usize>,
pub global_addrs: Vec<usize>,
pub elem_addrs: Vec<usize>,
pub data_addrs: Vec<usize>,
pub exports: BTreeMap<String, ExternVal>,
pub wasm_bytecode: &'b [u8],
pub sidetable: Vec<SidetableEntry>,
}
Fields§
§types: Vec<FuncType>
§func_addrs: Vec<usize>
§table_addrs: Vec<usize>
§mem_addrs: Vec<usize>
§global_addrs: Vec<usize>
§elem_addrs: Vec<usize>
§data_addrs: Vec<usize>
§exports: BTreeMap<String, ExternVal>
https://webassembly.github.io/spec/core/exec/runtime.html#export-instances matches the list of ExportInst structs in the spec, however the spec never uses the name attribute except during linking, which is up to the embedder to implement. therefore this is a map data structure instead.
wasm_bytecode: &'b [u8]
§sidetable: Vec<SidetableEntry>
Trait Implementations§
Auto Trait Implementations§
impl<'b> Freeze for ModuleInst<'b>
impl<'b> RefUnwindSafe for ModuleInst<'b>
impl<'b> Send for ModuleInst<'b>
impl<'b> Sync for ModuleInst<'b>
impl<'b> Unpin for ModuleInst<'b>
impl<'b> UnwindSafe for ModuleInst<'b>
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