Enum rustc_typeck::hir::map::MapEntry [] [src]

pub enum MapEntry<'ast> {
    NotPresent,
    EntryItem(u32, &'ast Item),
    EntryForeignItem(u32, &'ast ForeignItem),
    EntryTraitItem(u32, &'ast TraitItem),
    EntryImplItem(u32, &'ast ImplItem),
    EntryVariant(u32, &'ast Spanned<Variant_>),
    EntryExpr(u32, &'ast Expr),
    EntryStmt(u32, &'ast Spanned<Stmt_>),
    EntryLocal(u32, &'ast Pat),
    EntryPat(u32, &'ast Pat),
    EntryBlock(u32, &'ast Block),
    EntryStructCtor(u32, &'ast VariantData),
    EntryLifetime(u32, &'ast Lifetime),
    EntryTyParam(u32, &'ast TyParam),
    RootCrate,
    RootInlinedParent(&'ast InlinedItem),
}
Unstable (rustc_private)

Represents an entry and its parent NodeID. The odd layout is to bring down the total size.

Variants

NotPresent
Unstable (rustc_private)

Placeholder for holes in the map.

EntryItem(u32, &'ast Item)
Unstable (rustc_private)

All the node types, with a parent ID.

EntryForeignItem(u32, &'ast ForeignItem)
Unstable (rustc_private)
EntryTraitItem(u32, &'ast TraitItem)
Unstable (rustc_private)
EntryImplItem(u32, &'ast ImplItem)
Unstable (rustc_private)
EntryVariant(u32, &'ast Spanned<Variant_>)
Unstable (rustc_private)
EntryExpr(u32, &'ast Expr)
Unstable (rustc_private)
EntryStmt(u32, &'ast Spanned<Stmt_>)
Unstable (rustc_private)
EntryLocal(u32, &'ast Pat)
Unstable (rustc_private)
EntryPat(u32, &'ast Pat)
Unstable (rustc_private)
EntryBlock(u32, &'ast Block)
Unstable (rustc_private)
EntryStructCtor(u32, &'ast VariantData)
Unstable (rustc_private)
EntryLifetime(u32, &'ast Lifetime)
Unstable (rustc_private)
EntryTyParam(u32, &'ast TyParam)
Unstable (rustc_private)
RootCrate
Unstable (rustc_private)

Roots for node trees.

RootInlinedParent(&'ast InlinedItem)
Unstable (rustc_private)

Trait Implementations

impl<'ast> Clone for MapEntry<'ast>

fn clone(&self) -> MapEntry<'ast>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

Derived Implementations

impl<'ast> Debug for MapEntry<'ast>

fn fmt(&self, __arg_0: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl<'ast> Copy for MapEntry<'ast>