Struct tinywasm::types::TinyWasmModule
source · pub struct TinyWasmModule {
pub version: Option<u16>,
pub start_func: Option<u32>,
pub funcs: Box<[(u32, WasmFunction)]>,
pub func_types: Box<[FuncType]>,
pub exports: Box<[Export]>,
pub globals: Box<[Global]>,
pub table_types: Box<[TableType]>,
pub memory_types: Box<[MemoryType]>,
pub imports: Box<[Import]>,
pub data: Box<[Data]>,
pub elements: Box<[Element]>,
}
Expand description
A TinyWasm WebAssembly Module
This is the internal representation of a WebAssembly module in TinyWasm. TinyWasmModules are validated before being created, so they are guaranteed to be valid (as long as they were created by TinyWasm). This means you should not trust a TinyWasmModule created by a third party to be valid.
Fields§
§version: Option<u16>
The version of the WebAssembly module.
start_func: Option<u32>
The start function of the WebAssembly module.
funcs: Box<[(u32, WasmFunction)]>
The functions of the WebAssembly module.
func_types: Box<[FuncType]>
The types of the WebAssembly module.
exports: Box<[Export]>
The exports of the WebAssembly module.
globals: Box<[Global]>
The tables of the WebAssembly module.
table_types: Box<[TableType]>
The tables of the WebAssembly module.
memory_types: Box<[MemoryType]>
The memories of the WebAssembly module.
imports: Box<[Import]>
The imports of the WebAssembly module.
data: Box<[Data]>
Data segments of the WebAssembly module.
elements: Box<[Element]>
Element segments of the WebAssembly module.
Trait Implementations§
source§impl Clone for TinyWasmModule
impl Clone for TinyWasmModule
source§fn clone(&self) -> TinyWasmModule
fn clone(&self) -> TinyWasmModule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more