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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.