Enum wast::component::ComponentExportKind
source · [−]pub enum ComponentExportKind<'a> {
CoreModule(ItemRef<'a, module>),
Func(ItemRef<'a, func>),
Value(ItemRef<'a, value>),
Type(ItemRef<'a, type>),
Component(ItemRef<'a, component>),
Instance(ItemRef<'a, instance>),
}
Expand description
The kind of exported item.
Variants
CoreModule(ItemRef<'a, module>)
The export is a core module.
Note this isn’t a core item ref as currently only components can export core modules.
Func(ItemRef<'a, func>)
The export is a function.
Value(ItemRef<'a, value>)
The export is a value.
Type(ItemRef<'a, type>)
The export is a type.
Component(ItemRef<'a, component>)
The export is a component.
Instance(ItemRef<'a, instance>)
The export is an instance.
Trait Implementations
sourceimpl<'a> Debug for ComponentExportKind<'a>
impl<'a> Debug for ComponentExportKind<'a>
sourceimpl From<&'_ ComponentExportKind<'_>> for (ComponentExportKind, u32)
impl From<&'_ ComponentExportKind<'_>> for (ComponentExportKind, u32)
sourcefn from(kind: &ComponentExportKind<'_>) -> Self
fn from(kind: &ComponentExportKind<'_>) -> Self
Performs the conversion.
sourceimpl<'a> Parse<'a> for ComponentExportKind<'a>
impl<'a> Parse<'a> for ComponentExportKind<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ComponentExportKind<'a>
impl<'a> Send for ComponentExportKind<'a>
impl<'a> Sync for ComponentExportKind<'a>
impl<'a> Unpin for ComponentExportKind<'a>
impl<'a> UnwindSafe for ComponentExportKind<'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