pub struct WasmModule {
pub wasm_bytes: Vec<u8>,
pub dwarf_bytes: Option<Vec<u8>>,
pub entry_points: HashMap<String, u32>,
pub memory_layout: MemoryLayout,
}Expand description
Output of WASM compilation
Fields§
§wasm_bytes: Vec<u8>WASM bytecode
dwarf_bytes: Option<Vec<u8>>Separate DWARF debug data (optional, embedded in custom sections)
entry_points: HashMap<String, u32>Entry point function names mapped to function indices
memory_layout: MemoryLayoutMemory layout information
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WasmModule
impl RefUnwindSafe for WasmModule
impl Send for WasmModule
impl Sync for WasmModule
impl Unpin for WasmModule
impl UnwindSafe for WasmModule
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