Expand description
This module contains the type definition for DefId and the types
DefId depends on.
Re-exportsΒ§
use crate::frontend::AdtInto;πuse charon_lib::ast::HashConsed;πuse itertools::Itertools;πuse rustc_hash::FxHashSet as HashSet;πuse rustc_middle::ty::CallerBoundsIterator;πuse rustc_span::DUMMY_SP;πuse rustc_trait_elaboration::GenericParams;πuse rustc_trait_elaboration::param_env_from_clauses;πuse rustc_hir as hir;πuse rustc_hir::def_id::DefId as RDefId;πuse rustc_middle::ty;πuse crate::frontend::prelude::*;π
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] - Virtual
Impl Assoc Item - 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 - RAlloc
Id - Symbol
- An interned UTF-8 string.
EnumsΒ§
- DefId
Base - DefKind
- Reflects
rustc_hir::def::DefKind - DefPath
Item - Reflects [
rustc_hir::definitions::DefPathData] - Derived
Item Kind - 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.