Struct web_assembler::Module [−][src]
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>>
Methods
impl Module[src]
impl Modulepub fn function_index_of(
&self,
i: ImportIndex
) -> Result<FunctionSpaceIndex, ImportIndex>[src]
pub fn function_index_of(
&self,
i: ImportIndex
) -> Result<FunctionSpaceIndex, ImportIndex>Trait Implementations
impl Debug for Module[src]
impl Debug for Modulefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Module[src]
impl Clone for Modulefn clone(&self) -> Module[src]
fn clone(&self) -> ModuleReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Dump for Module[src]
impl Dump for Module