pub enum CanonicalFuncKind<'a> {
    Lift {
        ty: ComponentTypeUse<'a, ComponentFunctionType<'a>>,
        info: CanonLift<'a>,
    },
    Lower(CanonLower<'a>),
}
Expand description

Possible ways to define a canonical function in the text format.

Variants

Lift

Fields

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

The lifted function’s type.

info: CanonLift<'a>

Information relating to the lifting of the core function.

A canonical function that is defined in terms of lifting a core function.

Lower(CanonLower<'a>)

A canonical function that is defined in terms of lowering a component function.

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.