pub struct Module {
    pub types: RefList<Type>,
    pub funcs: RefList<Func>,
    pub memory: RefList<Memory>,
    pub tables: RefList<Table>,
    pub globals: RefList<Global>,
    pub start: Option<EntryRef<Func>>,
    pub exports: Vec<Export>,
    pub elements: Vec<ElementSegment>,
    pub data: Vec<DataSegment>,
    pub other: BTreeMap<usize, Section>,
}
Expand description

Module

Fields

types: RefList<Type>

Refence-tracking list of types.

funcs: RefList<Func>

Refence-tracking list of funcs.

memory: RefList<Memory>

Refence-tracking list of memory instances.

tables: RefList<Table>

Refence-tracking list of table instances.

globals: RefList<Global>

Refence-tracking list of globals.

start: Option<EntryRef<Func>>

Reference to start function.

exports: Vec<Export>

References to exported objects.

elements: Vec<ElementSegment>

List of element segments.

data: Vec<DataSegment>

List of data segments.

other: BTreeMap<usize, Section>

Other module functions that are not decoded or processed.

Implementations

Initialize module from parity-wasm Module.

Generate raw format representation.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.