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, false>),
}
Expand description
Represents the kind of component functions.
Variants§
Import
A function which is actually defined as an import, such as:
(func (import "foo") (param string))
Fields
§
import: InlineImport<'a>
The import name of this import.
§
ty: ComponentTypeUse<'a, ComponentFunctionType<'a>>
The type that this function will have.
Lift
The function is defined in terms of lifting a core function.
The function is actually a member of the canon section.
Fields
§
ty: ComponentTypeUse<'a, ComponentFunctionType<'a>>
The lifted function’s type.
Alias(InlineExportAlias<'a, false>)
The function is defined in terms of aliasing a component instance export.
The function is actually a member of the alias section.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for FuncKind<'a>
impl<'a> RefUnwindSafe for FuncKind<'a>
impl<'a> Send for FuncKind<'a>
impl<'a> Sync for FuncKind<'a>
impl<'a> Unpin for FuncKind<'a>
impl<'a> UnwindSafe for FuncKind<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more