Enum wast::component::AliasTarget
source · [−]pub enum AliasTarget<'a> {
Export {
instance: Index<'a>,
name: &'a str,
kind: ComponentExportAliasKind,
},
CoreExport {
instance: Index<'a>,
name: &'a str,
kind: ExportKind,
},
Outer {
outer: Index<'a>,
index: Index<'a>,
kind: ComponentOuterAliasKind,
},
}
Expand description
The target of a component alias.
Variants
Export
Fields
instance: Index<'a>
The component instance exporting the item.
name: &'a str
The name of the exported item to alias.
kind: ComponentExportAliasKind
The export kind of the alias.
The alias is to an export of a component instance.
CoreExport
Fields
instance: Index<'a>
The module instance exporting the item.
name: &'a str
The name of the exported item to alias.
kind: ExportKind
The export kind of the alias.
The alias is to an export of a module instance.
Outer
Fields
outer: Index<'a>
The number of enclosing components to skip.
index: Index<'a>
The index of the item being aliased.
kind: ComponentOuterAliasKind
The outer alias kind.
The alias is to an item from an outer component.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for AliasTarget<'a>
impl<'a> Send for AliasTarget<'a>
impl<'a> Sync for AliasTarget<'a>
impl<'a> Unpin for AliasTarget<'a>
impl<'a> UnwindSafe for AliasTarget<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more