Enum wasm_encoder::Alias
source · pub enum Alias<'a> {
InstanceExport {
instance: u32,
kind: ComponentExportKind,
name: &'a str,
},
CoreInstanceExport {
instance: u32,
kind: ExportKind,
name: &'a str,
},
Outer {
kind: ComponentOuterAliasKind,
count: u32,
index: u32,
},
}
Expand description
Different forms of aliases that can be inserted into a
ComponentAliasSection
.
Variants§
InstanceExport
Fields
§
kind: ComponentExportKind
The kind of item that’s being extracted from the component instance.
An alias of a component instance export.
CoreInstanceExport
Same as InstanceExport
, but for core instances.
Outer
Fields
§
kind: ComponentOuterAliasKind
The kind of item being aliased, either a type or a component.
Aliasing an item from an outer component.