[][src]Struct rustc_hir::hir::Item

pub struct Item<'hir> {
    pub ident: Ident,
    pub hir_id: HirId,
    pub attrs: &'hir [Attribute],
    pub kind: ItemKind<'hir>,
    pub vis: Visibility<'hir>,
    pub span: Span,
}

An item

The name might be a dummy name in case of anonymous items

Fields

ident: Identhir_id: HirIdattrs: &'hir [Attribute]kind: ItemKind<'hir>vis: Visibility<'hir>span: Span

Trait Implementations

impl<'hir> Debug for Item<'hir>[src]

impl<HirCtx: HashStableContext> HashStable<HirCtx> for Item<'_>[src]

Auto Trait Implementations

impl<'hir> !RefUnwindSafe for Item<'hir>[src]

impl<'hir> !Send for Item<'hir>[src]

impl<'hir> !Sync for Item<'hir>[src]

impl<'hir> Unpin for Item<'hir>[src]

impl<'hir> !UnwindSafe for Item<'hir>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.