pub struct ComponentImport<'a> {
pub span: Span,
pub name: ComponentExternName<'a>,
pub item: ItemSig<'a>,
}
Available on crate feature
component-model
only.Expand description
An import
statement and entry in a WebAssembly component.
Fields§
§span: Span
Where this import
was defined
name: ComponentExternName<'a>
The name of the item being imported.
item: ItemSig<'a>
The item that’s being imported.
Trait Implementations§
Source§impl<'a> Debug for ComponentImport<'a>
impl<'a> Debug for ComponentImport<'a>
Auto Trait Implementations§
impl<'a> Freeze for ComponentImport<'a>
impl<'a> RefUnwindSafe for ComponentImport<'a>
impl<'a> Send for ComponentImport<'a>
impl<'a> Sync for ComponentImport<'a>
impl<'a> Unpin for ComponentImport<'a>
impl<'a> UnwindSafe for ComponentImport<'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