Enum wast::InstanceKind
source · [−]pub enum InstanceKind<'a> {
Import {
import: InlineImport<'a>,
ty: TypeUse<'a, InstanceType<'a>>,
},
Inline {
module: ItemRef<'a, module>,
args: Vec<InstanceArg<'a>>,
},
}
Expand description
Possible ways to define a instance in the text format.
Variants
Import
Fields
import: InlineImport<'a>
Where we’re importing from
ty: TypeUse<'a, InstanceType<'a>>
The type that this instance will have.
An instance which is actually defined as an import, such as:
Inline
Fields
args: Vec<InstanceArg<'a>>
Arguments used to instantiate the instance
Instances whose instantiation is defined inline.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for InstanceKind<'a>
impl<'a> Send for InstanceKind<'a>
impl<'a> Sync for InstanceKind<'a>
impl<'a> Unpin for InstanceKind<'a>
impl<'a> UnwindSafe for InstanceKind<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more