Struct web_assembler::Module
source · [−]pub struct Module {
pub unknown: Option<String>,
pub types: Option<Vec<FuncType>>,
pub imports: Option<Vec<ImportEntry>>,
pub functions: Option<Vec<Function>>,
pub tables: Option<Vec<TableType>>,
pub memories: Option<Vec<MemoryType>>,
pub globals: Option<Vec<GlobalVariable>>,
pub exports: Option<Vec<ExportEntry>>,
pub start: Option<FunctionIndex>,
pub elements: Option<Vec<ElemSegment>>,
pub codes: Option<Vec<FunctionBody>>,
pub data: Option<Vec<DataSegment>>,
}
Fields
unknown: Option<String>
types: Option<Vec<FuncType>>
imports: Option<Vec<ImportEntry>>
functions: Option<Vec<Function>>
tables: Option<Vec<TableType>>
memories: Option<Vec<MemoryType>>
globals: Option<Vec<GlobalVariable>>
exports: Option<Vec<ExportEntry>>
start: Option<FunctionIndex>
elements: Option<Vec<ElemSegment>>
codes: Option<Vec<FunctionBody>>
data: Option<Vec<DataSegment>>
Implementations
sourceimpl Module
impl Module
pub fn function_index_of(
&self,
i: ImportIndex
) -> Result<FunctionSpaceIndex, ImportIndex>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnwindSafe for Module
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more