Struct wast::component::ComponentExport
source · pub struct ComponentExport<'a> {
pub span: Span,
pub id: Option<Id<'a>>,
pub debug_name: Option<NameAnnotation<'a>>,
pub name: ComponentExternName<'a>,
pub kind: ComponentExportKind<'a>,
pub ty: Option<ItemSigNoName<'a>>,
}
Expand description
An entry in a WebAssembly component’s export section.
Fields§
§span: Span
Where this export was defined.
id: Option<Id<'a>>
Optional identifier bound to this export.
debug_name: Option<NameAnnotation<'a>>
An optional name for this instance stored in the custom name
section.
name: ComponentExternName<'a>
The name of this export from the component.
kind: ComponentExportKind<'a>
The kind of export.
ty: Option<ItemSigNoName<'a>>
The kind of export.
Trait Implementations§
source§impl<'a> Debug for ComponentExport<'a>
impl<'a> Debug for ComponentExport<'a>
Auto Trait Implementations§
impl<'a> Freeze for ComponentExport<'a>
impl<'a> RefUnwindSafe for ComponentExport<'a>
impl<'a> Send for ComponentExport<'a>
impl<'a> Sync for ComponentExport<'a>
impl<'a> Unpin for ComponentExport<'a>
impl<'a> UnwindSafe for ComponentExport<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more