[][src]Module rustc::hir::map

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Re-exports

pub use self::definitions::Definitions;
pub use self::definitions::DefKey;
pub use self::definitions::DefPath;
pub use self::definitions::DefPathData;
pub use self::definitions::DisambiguatedDefPathData;
pub use self::definitions::DefPathHash;

Modules

blocksInternal

This module provides a simplified abstraction for working with code blocks identified by their integer NodeId. In particular, it captures a common set of attributes that all "function-like things" (represented by FnLike instances) share. For example, all FnLike instances have a type signature (be it explicit or inferred). And all FnLike instances have a body, i.e., the code that is run when the function-like thing it represents is invoked.

collectorInternal
def_collectorInternal
definitionsInternal

For each definition, we track the following data. A definition here is defined somewhat circularly as "something with a DefId", but it generally corresponds to things like structs, enums, etc. There are also some rather random cases (like const initializer expressions) that are mostly just leftovers.

hir_id_validatorInternal

Structs

DefCollectorInternal

Creates DefIds for nodes in the AST.

EntryInternal

Represents an entry and its parent HirId.

ForestInternal

Stores a crate and any number of inlined items from other crates.

MapInternal

Represents a mapping from NodeIds to AST elements and their parent NodeIds.

NodesMatchingSuffixInternal

Traits

NamedInternal

Functions

hir_id_to_stringInternal
map_crateInternal
provideInternal

Type Definitions

HirEntryMapInternal

This type is effectively a HashMap<HirId, Entry<'hir>>, but it is implemented as 2 layers of arrays.