Enum wast::NestedModuleKind[][src]

pub enum NestedModuleKind<'a> {
    Import {
        import: InlineImport<'a>,
        ty: TypeUse<'a, ModuleType<'a>>,
    },
    Inline {
        fields: Vec<ModuleField<'a>>,
    },
}
Expand description

Possible ways to define a nested module in the text format.

Variants

Import

An nested module which is actually defined as an import, such as:

Fields of Import

import: InlineImport<'a>

Where this nested module is imported from

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

The type that this nested module will have.

Inline

Nested modules whose instantiation is defined inline.

Fields of Inline

fields: Vec<ModuleField<'a>>

Fields in the nested module.

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.