pub enum Alias {
    ParentModule(ModuleIndex),
    ParentType(TypeIndex),
    Child {
        instance: InstanceIndex,
        export: usize,
    },
}
Expand description

An entry in the alias section of a wasm module (from the module linking proposal)

Variants

ParentModule(ModuleIndex)

A parent’s module is being aliased into our own index space.

Note that the index here is in the parent’s index space, not our own.

ParentType(TypeIndex)

A parent’s type is being aliased into our own index space

Note that the index here is in the parent’s index space, not our own.

Child

Fields

instance: InstanceIndex

The index we’re aliasing.

export: usize

The nth export that we’re inserting into our own index space locally.

A previously created instance is having one of its exports aliased into our index space.

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.