Module rustc::hir::def_id
[−]
[src]
🔬 This is a nightly-only experimental API. (
rustc_private
)Structs
CrateNum |
[ Experimental ]
|
DefId |
[ Experimental ] A DefId identifies a particular definition, by combining a crate index and a def index. |
DefIndex |
[ Experimental ] A DefIndex is an index into the hir-map for a crate, identifying a particular definition. It should really be considered an interned shorthand for a particular DefPath. |
Constants
BUILTIN_MACROS_CRATE |
[ Experimental ] Virtual crate for builtin macros |
CRATE_DEF_INDEX |
[ Experimental ] The crate root is always assigned index 0 by the AST Map code,
thanks to |
LOCAL_CRATE |
[ Experimental ] Item definitions in the currently-compiled crate would have the CrateNum LOCAL_CRATE in their DefId. |