Struct gear_pwasm_utils::Module
source · 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§
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§
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