Enum rustc::hir::map::MapEntry
[−]
[src]
pub enum MapEntry<'ast> { NotPresent, EntryItem(NodeId, &'ast Item), EntryForeignItem(NodeId, &'ast ForeignItem), EntryTraitItem(NodeId, &'ast TraitItem), EntryImplItem(NodeId, &'ast ImplItem), EntryVariant(NodeId, &'ast Variant), EntryExpr(NodeId, &'ast Expr), EntryStmt(NodeId, &'ast Stmt), EntryLocal(NodeId, &'ast Pat), EntryPat(NodeId, &'ast Pat), EntryBlock(NodeId, &'ast Block), EntryStructCtor(NodeId, &'ast VariantData), EntryLifetime(NodeId, &'ast Lifetime), EntryTyParam(NodeId, &'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(NodeId, &'ast Item)
Unstable (
rustc_private
)All the node types, with a parent ID.
EntryForeignItem(NodeId, &'ast ForeignItem)
Unstable (
rustc_private
)EntryTraitItem(NodeId, &'ast TraitItem)
Unstable (
rustc_private
)EntryImplItem(NodeId, &'ast ImplItem)
Unstable (
rustc_private
)EntryVariant(NodeId, &'ast Variant)
Unstable (
rustc_private
)EntryExpr(NodeId, &'ast Expr)
Unstable (
rustc_private
)EntryStmt(NodeId, &'ast Stmt)
Unstable (
rustc_private
)EntryLocal(NodeId, &'ast Pat)
Unstable (
rustc_private
)EntryPat(NodeId, &'ast Pat)
Unstable (
rustc_private
)EntryBlock(NodeId, &'ast Block)
Unstable (
rustc_private
)EntryStructCtor(NodeId, &'ast VariantData)
Unstable (
rustc_private
)EntryLifetime(NodeId, &'ast Lifetime)
Unstable (
rustc_private
)EntryTyParam(NodeId, &'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>
[src]
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