Enum wast::component::InstantiationArgKind
source · [−]pub enum InstantiationArgKind<'a> {
Item(ComponentExportKind<'a>),
BundleOfExports(Span, Vec<ComponentExport<'a>>),
}
Expand description
The kind of instantiation argument.
Variants
Item(ComponentExportKind<'a>)
The argument is a reference to a component item.
BundleOfExports(Span, Vec<ComponentExport<'a>>)
The argument is an instance created from local exported items.
This is syntactic sugar for defining an instance and also using it as an instantiation argument.
Trait Implementations
sourceimpl<'a> Debug for InstantiationArgKind<'a>
impl<'a> Debug for InstantiationArgKind<'a>
sourceimpl From<&'_ InstantiationArgKind<'_>> for (ComponentExportKind, u32)
impl From<&'_ InstantiationArgKind<'_>> for (ComponentExportKind, u32)
sourcefn from(kind: &InstantiationArgKind<'_>) -> Self
fn from(kind: &InstantiationArgKind<'_>) -> Self
Performs the conversion.
Auto Trait Implementations
impl<'a> RefUnwindSafe for InstantiationArgKind<'a>
impl<'a> Send for InstantiationArgKind<'a>
impl<'a> Sync for InstantiationArgKind<'a>
impl<'a> Unpin for InstantiationArgKind<'a>
impl<'a> UnwindSafe for InstantiationArgKind<'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