Expand description
This module contains the type definition for DefId and the types
DefId depends on.
This is purposely a very small isolated module:
hax-engine-names-extract uses those types, but we don’t want
hax-engine-names-extract to have a build dependency on the whole
frontend, that double the build times for the Rust part of hax.
Structs§
- DefId
- Reflects
rustc_hir::def_id::DefId, augmented to also give ids to promoted constants (which have their own ad-hoc numbering scheme in rustc for now). - DefId
Contents - Disambiguated
DefPath Item - Reflects [
rustc_hir::definitions::DisambiguatedDefPathData] - Byte
Symbol - Like
Symbol, but for byte strings.ByteSymbolis used less widely, so it has fewer operations defined thanSymbol. - Macro
Kinds - A set of macro kinds, for macros that can have more than one kind
- Promoted
Id - Symbol
- An interned UTF-8 string.
Enums§
- DefId
Base - DefKind
- Reflects
rustc_hir::def::DefKind - DefPath
Item - Reflects [
rustc_hir::definitions::DefPathData] - Ctor
Kind - What kind of constructor something is.
- CtorOf
- Encodes if a
DefKind::Ctoris the constructor of an enum variant or a struct. - Mutability
- Safety
Constants§
- SYNTHETIC_
CRATE_ 🔒NAME - The crate name under which synthetic items are exported under.
Functions§
- get_
def_ 🔒kind - Gets the kind of the definition. Can’t use
def_kinddirectly because this crashes on the crate root.