Enum wast::component::CoreInstanceKind
source · [−]pub enum CoreInstanceKind<'a> {
Instantiate {
module: ItemRef<'a, module>,
args: Vec<CoreInstantiationArg<'a>>,
},
BundleOfExports(Vec<CoreInstanceExport<'a>>),
}
Expand description
The kinds of core instances in the text format.
Variants
Instantiate
Fields
args: Vec<CoreInstantiationArg<'a>>
Arguments used to instantiate the instance.
Instantiate a core module.
BundleOfExports(Vec<CoreInstanceExport<'a>>)
The instance is defined by exporting local items as an instance.
Trait Implementations
sourceimpl<'a> Debug for CoreInstanceKind<'a>
impl<'a> Debug for CoreInstanceKind<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for CoreInstanceKind<'a>
impl<'a> Send for CoreInstanceKind<'a>
impl<'a> Sync for CoreInstanceKind<'a>
impl<'a> Unpin for CoreInstanceKind<'a>
impl<'a> UnwindSafe for CoreInstanceKind<'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