pub enum NestedComponentKind<'a> {
    Import {
        import: InlineImport<'a>,
        ty: ComponentTypeUse<'a, ComponentType<'a>>,
    },
    Inline(Vec<ComponentField<'a>>),
}
Expand description

The different kinds of ways to define a nested component.

Variants

Import

Fields

import: InlineImport<'a>

The information about where this is being imported from.

ty: ComponentTypeUse<'a, ComponentType<'a>>

The type of component being imported.

This is actually an inline import of a component

Inline(Vec<ComponentField<'a>>)

The component is defined inline as a local definition with its fields listed here.

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.