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

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

Variants

Import

Fields

import: InlineImport<'a>

Where this core module is imported from

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

The type that this core module will have.

A core module which is actually defined as an import

Inline

Fields

fields: Vec<ModuleField<'a>>

Fields in the core module.

Modules that are defined inline.

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

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.