Struct tinywasm_parser::TinyWasmModule
source · pub struct TinyWasmModule {
pub version: Option<u16>,
pub start_func: Option<u32>,
pub funcs: Box<[Function]>,
pub types: Box<[FuncType]>,
pub exports: Box<[Export]>,
}
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<[Function]>
The functions of the WebAssembly module.
types: Box<[FuncType]>
The types of the WebAssembly module.
exports: Box<[Export]>
The exports of the WebAssembly module.
Trait Implementations§
source§impl Clone for TinyWasmModule
impl Clone for TinyWasmModule
source§fn clone(&self) -> TinyWasmModule
fn clone(&self) -> TinyWasmModule
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for TinyWasmModule
impl Send for TinyWasmModule
impl Sync for TinyWasmModule
impl Unpin for TinyWasmModule
impl UnwindSafe for TinyWasmModule
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