Struct wasm_encoder::AliasSection [−][src]
pub struct AliasSection { /* fields omitted */ }Expand description
An encoder for the alias section.
Note that this is part of the module linking proposal and is not currently part of stable WebAssembly.
Example
use wasm_encoder::{Module, AliasSection, ItemKind}; let mut aliases = AliasSection::new(); aliases.outer_type(0, 2); aliases.instance_export(0, ItemKind::Function, "foo"); let mut module = Module::new(); module.section(&aliases); let wasm_bytes = module.finish();
Implementations
Construct a new alias section encoder.
Define an alias that references the export of a defined instance.
Define an alias that references an outer module’s type.
Define an alias that references an outer module’s module.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AliasSectionimpl Send for AliasSectionimpl Sync for AliasSectionimpl Unpin for AliasSectionimpl UnwindSafe for AliasSectionBlanket Implementations
Mutably borrows from an owned value. Read more