pub struct ItemSig<'a> {
pub span: Span,
pub id: Option<Id<'a>>,
pub name: Option<NameAnnotation<'a>>,
pub kind: ItemKind<'a>,
}
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 module.
name: Option<NameAnnotation<'a>>
An optional name which, for functions, will be stored in the
custom name
section.
kind: ItemKind<'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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more