Enum wast::component::ItemSigKind
source · [−]pub enum ItemSigKind<'a> {
CoreModule(CoreTypeUse<'a, ModuleType<'a>>),
Func(ComponentTypeUse<'a, ComponentFunctionType<'a>>),
Component(ComponentTypeUse<'a, ComponentType<'a>>),
Instance(ComponentTypeUse<'a, InstanceType<'a>>),
Value(ComponentValTypeUse<'a>),
Type(TypeBounds<'a>),
}
Expand description
The kind of signatures for imported items.
Variants
CoreModule(CoreTypeUse<'a, ModuleType<'a>>)
The item signature is for a core module.
Func(ComponentTypeUse<'a, ComponentFunctionType<'a>>)
The item signature is for a function.
Component(ComponentTypeUse<'a, ComponentType<'a>>)
The item signature is for a component.
Instance(ComponentTypeUse<'a, InstanceType<'a>>)
The item signature is for an instance.
Value(ComponentValTypeUse<'a>)
The item signature is for a value.
Type(TypeBounds<'a>)
The item signature is for a type.
Trait Implementations
sourceimpl<'a> Debug for ItemSigKind<'a>
impl<'a> Debug for ItemSigKind<'a>
sourceimpl From<&'_ ItemSigKind<'_>> for ComponentTypeRef
impl From<&'_ ItemSigKind<'_>> for ComponentTypeRef
sourcefn from(k: &ItemSigKind<'_>) -> Self
fn from(k: &ItemSigKind<'_>) -> Self
Performs the conversion.
Auto Trait Implementations
impl<'a> RefUnwindSafe for ItemSigKind<'a>
impl<'a> Send for ItemSigKind<'a>
impl<'a> Sync for ItemSigKind<'a>
impl<'a> Unpin for ItemSigKind<'a>
impl<'a> UnwindSafe for ItemSigKind<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more