Module rustc::hir::map::definitions [−][src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
For each definition, we track the following data. A definition here is defined somewhat circularly as "something with a def-id", 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.
Re-exports
use hir; |
use hir::def_id::CrateNum; |
use hir::def_id::DefId; |
use hir::def_id::DefIndex; |
use hir::def_id::LOCAL_CRATE; |
use hir::def_id::DefIndexAddressSpace; |
use hir::def_id::CRATE_DEF_INDEX; |
use ich::Fingerprint; |
use rustc_data_structures::fx::FxHashMap; |
use rustc_data_structures::fx::FxHashMap; |
use rustc_data_structures::indexed_vec::IndexVec; |
use rustc_data_structures::stable_hasher::StableHasher; |
use serialize::Encodable; |
use serialize::Decodable; |
use serialize::Encoder; |
use serialize::Decoder; |
use session::CrateDisambiguator; |
use std::fmt::Write; |
use std::hash::Hash; |
use syntax::ast; |
use syntax::ext::hygiene::Mark; |
use syntax::symbol::Symbol; |
use syntax::symbol::InternedString; |
use syntax_pos::Span; |
use syntax_pos::DUMMY_SP; |
use util::nodemap::NodeMap; |
use util::nodemap::NodeMap; |
Structs
DefKey |
[ Experimental ] A unique identifier that we can use to lookup a definition
precisely. It combines the index of the definition's parent (if
any) with a |
DefPath |
[ Experimental ]
|
DefPathHash |
[ Experimental ]
|
DefPathTable |
[ Experimental ] The DefPathTable maps DefIndexes to DefKeys and vice versa. Internally the DefPathTable holds a tree of DefKeys, where each DefKey stores the DefIndex of its parent. There is one DefPathTable for each crate. |
Definitions |
[ Experimental ] The definition table containing node definitions. It holds the DefPathTable for local DefIds/DefPaths and it also stores a mapping from NodeIds to local DefIds. |
DisambiguatedDefPathData |
[ Experimental ] Pair of |
Enums
DefPathData |
[ Experimental ]
|
GlobalMetaDataKind |
[ Experimental ]
|
Constants
GLOBAL_MD_ADDRESS_SPACE |
[ Experimental ]
|