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 AliasSection
impl Send for AliasSection
impl Sync for AliasSection
impl Unpin for AliasSection
impl UnwindSafe for AliasSection
Blanket Implementations
Mutably borrows from an owned value. Read more