pub enum FuncKind<'a> {
    Import {
        import: InlineImport<'a>,
        ty: ComponentTypeUse<'a, ComponentFunctionType<'a>>,
    },
    Lift {
        ty: ComponentTypeUse<'a, ComponentFunctionType<'a>>,
        info: CanonLift<'a>,
    },
    Alias(InlineExportAlias<'a>),
}
Expand description

Represents the kind of component functions.

Variants

Import

Fields

import: InlineImport<'a>

The import name of this import.

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

The type that this function will have.

A function which is actually defined as an import, such as:

(func (import "foo") (param string))

Lift

Fields

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

The lifted function’s type.

info: CanonLift<'a>

Information relating to the lifting of the core function.

The function is defined in terms of lifting a core function.

The function is actually a member of the canon section.

Alias(InlineExportAlias<'a>)

The function is defined in terms of aliasing a component instance export.

The function is actually a member of the alias section.

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.