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 component instance defined by instantiation or exporting items.
Fields
span: Span
Where 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 instance 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.
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 · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more