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