Struct wasm_encoder::component::AliasSection [−][src]
pub struct AliasSection { /* fields omitted */ }
Expand description
An encoder for the component alias section.
Example
use wasm_encoder::component::{Component, AliasSection, ExportKind};
let mut aliases = AliasSection::new();
aliases.outer_type(0, 2);
aliases.instance_export(0, ExportKind::Function, "foo");
let mut component = Component::new();
component.section(&aliases);
let bytes = component.finish();
Implementations
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
Returns the “default value” for a type. Read more
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