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
The alias is to an export of a component instance.
Fields
§
kind: ComponentExportAliasKind
The export kind of the alias.
CoreExport
The alias is to an export of a module instance.
Fields
§
kind: ExportKind
The export kind of the alias.
Outer
The alias is to an item from an outer component.
Trait Implementations§
source§impl<'a> Debug for AliasTarget<'a>
impl<'a> Debug for AliasTarget<'a>
source§impl<'a> From<&AliasTarget<'a>> for Alias<'a>
impl<'a> From<&AliasTarget<'a>> for Alias<'a>
source§fn from(target: &AliasTarget<'a>) -> Self
fn from(target: &AliasTarget<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for AliasTarget<'a>
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§
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