Enum cranelift_wasm::Alias[][src]

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

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

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

Fields of Child

instance: InstanceIndex

The index we’re aliasing.

export: usize

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

Auto Trait Implementations

impl RefUnwindSafe for Alias

impl Send for Alias

impl Sync for Alias

impl Unpin for Alias

impl UnwindSafe for Alias

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.