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.
Trait Implementations§
impl<'a> Copy for Alias<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Alias<'a>
impl<'a> Send for Alias<'a>
impl<'a> Sync for Alias<'a>
impl<'a> Unpin for Alias<'a>
impl<'a> UnwindSafe for Alias<'a>
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