pub struct ItemSig<'a> {
pub span: Span,
pub id: Option<Id<'a>>,
pub name: Option<NameAnnotation<'a>>,
pub kind: ItemSigKind<'a>,
}
Expand description
An item signature for imported items.
Fields
span: Span
Where this item is defined in the source.
id: Option<Id<'a>>
An optional identifier used during name resolution to refer to this item from the rest of the component.
name: Option<NameAnnotation<'a>>
An optional name which, for functions, will be stored in the
custom name
section.
kind: ItemSigKind<'a>
What kind of item this is.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for ItemSig<'a>
impl<'a> Send for ItemSig<'a>
impl<'a> Sync for ItemSig<'a>
impl<'a> Unpin for ItemSig<'a>
impl<'a> UnwindSafe for ItemSig<'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