Enum wast::component::CanonicalFuncKind
source · pub enum CanonicalFuncKind<'a> {
Lift {
ty: ComponentTypeUse<'a, ComponentFunctionType<'a>>,
info: CanonLift<'a>,
},
Lower(CanonLower<'a>),
ResourceNew(CanonResourceNew<'a>),
ResourceDrop(CanonResourceDrop<'a>),
ResourceRep(CanonResourceRep<'a>),
}
Expand description
Possible ways to define a canonical function in the text format.
Variants§
Lift
A canonical function that is defined in terms of lifting a core function.
Fields
§
ty: ComponentTypeUse<'a, ComponentFunctionType<'a>>
The lifted function’s type.
Lower(CanonLower<'a>)
A canonical function that is defined in terms of lowering a component function.
ResourceNew(CanonResourceNew<'a>)
ResourceDrop(CanonResourceDrop<'a>)
ResourceRep(CanonResourceRep<'a>)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CanonicalFuncKind<'a>
impl<'a> RefUnwindSafe for CanonicalFuncKind<'a>
impl<'a> Send for CanonicalFuncKind<'a>
impl<'a> Sync for CanonicalFuncKind<'a>
impl<'a> Unpin for CanonicalFuncKind<'a>
impl<'a> UnwindSafe for CanonicalFuncKind<'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