Struct rustc_hir::Item [−][src]
pub struct Item<'hir> {
pub ident: Ident,
pub def_id: LocalDefId,
pub kind: ItemKind<'hir>,
pub vis: Visibility<'hir>,
pub span: Span,
}
Expand description
An item
The name might be a dummy name in case of anonymous items
Fields
ident: Ident
def_id: LocalDefId
kind: ItemKind<'hir>
vis: Visibility<'hir>
span: Span
Implementations
Trait Implementations
Auto Trait Implementations
impl<'hir> !RefUnwindSafe for Item<'hir>
impl<'hir> !UnwindSafe for Item<'hir>
Blanket Implementations
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 184 bytes