pub struct Instance<'a> {
    pub span: Span,
    pub id: Option<Id<'a>>,
    pub name: Option<NameAnnotation<'a>>,
    pub exports: InlineExport<'a>,
    pub kind: InstanceKind<'a>,
}Expand description
A nested WebAssembly instance to be created as part of a module.
Fields
span: SpanWhere this instance was defined.
id: Option<Id<'a>>An identifier that this instance is resolved with (optionally) for name resolution.
name: Option<NameAnnotation<'a>>An optional name for this function stored in the custom name section.
exports: InlineExport<'a>If present, inline export annotations which indicate names this definition should be exported under.
kind: InstanceKind<'a>What kind of instance this is, be it an inline-defined or imported one.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Instance<'a>
impl<'a> Send for Instance<'a>
impl<'a> Sync for Instance<'a>
impl<'a> Unpin for Instance<'a>
impl<'a> UnwindSafe for Instance<'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