Enum wast::InstanceKind[][src]

pub enum InstanceKind<'a> {
    Import {
        import: InlineImport<'a>,
        ty: TypeUse<'a, InstanceType<'a>>,
    },
    Inline {
        module: ItemRef<'a, module>,
        args: Vec<InstanceArg<'a>>,
    },
}
Expand description

Possible ways to define a instance in the text format.

Variants

Import

An instance which is actually defined as an import, such as:

Fields of Import

import: InlineImport<'a>

Where we’re importing from

ty: TypeUse<'a, InstanceType<'a>>

The type that this instance will have.

Inline

Instances whose instantiation is defined inline.

Fields of Inline

module: ItemRef<'a, module>

Module that we’re instantiating

args: Vec<InstanceArg<'a>>

Arguments used to instantiate the instance

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

Performs the conversion.

Performs the conversion.

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.