pub enum CoreInstanceKind<'a> {
    Instantiate {
        module: ItemRef<'a, module>,
        args: Vec<CoreInstantiationArg<'a>>,
    },
    BundleOfExports(Vec<CoreInstanceExport<'a>>),
}
Expand description

The kinds of core instances in the text format.

Variants

Instantiate

Fields

module: ItemRef<'a, module>

The module being instantiated.

args: Vec<CoreInstantiationArg<'a>>

Arguments used to instantiate the instance.

Instantiate a core module.

BundleOfExports(Vec<CoreInstanceExport<'a>>)

The instance is defined by exporting local items as an instance.

Trait Implementations

Formats the value using the given formatter. Read more

Attempts to parse Self from parser, returning an error if it could not be parsed. 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.