pub struct Import<'a> {
pub span: Span,
pub id: Option<Id<'a>>,
pub module: &'a str,
pub name: &'a str,
pub ty: TypeUse<'a>,
}Expand description
An imported function declaration using wasm interface types.
Fields§
§span: SpanWhere this import was defined.
id: Option<Id<'a>>The name of this import to refer to
module: &'a strWhere this was imported from
name: &'a strWhat is being imported
ty: TypeUse<'a>The type signature of the function being imported.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Import<'a>
impl<'a> RefUnwindSafe for Import<'a>
impl<'a> Send for Import<'a>
impl<'a> Sync for Import<'a>
impl<'a> Unpin for Import<'a>
impl<'a> UnwindSafe for Import<'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