Struct wast::component::NestedComponent
source · [−]pub struct NestedComponent<'a> {
pub span: Span,
pub id: Option<Id<'a>>,
pub name: Option<NameAnnotation<'a>>,
pub exports: InlineExport<'a>,
pub kind: NestedComponentKind<'a>,
}
Expand description
A nested WebAssembly component.
Fields
span: Span
Where this component
was defined
id: Option<Id<'a>>
An optional identifier this component is known by
name: Option<NameAnnotation<'a>>
An optional @name
annotation for this component
exports: InlineExport<'a>
If present, inline export annotations which indicate names this definition should be exported under.
kind: NestedComponentKind<'a>
What kind of component this was parsed as.
Trait Implementations
sourceimpl<'a> Debug for NestedComponent<'a>
impl<'a> Debug for NestedComponent<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for NestedComponent<'a>
impl<'a> Send for NestedComponent<'a>
impl<'a> Sync for NestedComponent<'a>
impl<'a> Unpin for NestedComponent<'a>
impl<'a> UnwindSafe for NestedComponent<'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