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>),
}Available on crate feature
component-model only.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§
Source§impl<'a> Debug for ComponentExportKind<'a>
impl<'a> Debug for ComponentExportKind<'a>
Source§impl From<&ComponentExportKind<'_>> for (ComponentExportKind, u32)
impl From<&ComponentExportKind<'_>> for (ComponentExportKind, u32)
Source§fn from(kind: &ComponentExportKind<'_>) -> Self
fn from(kind: &ComponentExportKind<'_>) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for ComponentExportKind<'a>
impl<'a> Parse<'a> for ComponentExportKind<'a>
Auto Trait Implementations§
impl<'a> Freeze for ComponentExportKind<'a>
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§
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