Skip to main content

Module def

Module def 

Source

Re-exportsΒ§

use std::array::IntoIter; πŸ”’
use std::borrow::Cow; πŸ”’
use std::fmt::Debug; πŸ”’
use std::fmt::Debug; πŸ”’
use rustc_ast as ast; πŸ”’
use rustc_ast::NodeId; πŸ”’
use rustc_error_messages::DiagArgValue; πŸ”’
use rustc_error_messages::IntoDiagArg; πŸ”’
use rustc_hir_id::HirId; πŸ”’
use rustc_macros::Decodable; πŸ”’
use rustc_macros::Encodable; πŸ”’
use rustc_macros::StableHash; πŸ”’
use rustc_span::Symbol; πŸ”’
use rustc_span::def_id::DefId; πŸ”’
use rustc_span::hygiene::MacroKind; πŸ”’
use crate as hir; πŸ”’
use crate::definitions::DefPathData; πŸ”’

StructsΒ§

MacroKinds
A set of macro kinds, for macros that can have more than one kind
PerNS
Just a helper β€’ separate structure for each namespace.

EnumsΒ§

CtorKind
What kind of constructor something is.
CtorOf
Encodes if a DefKind::Ctor is the constructor of an enum variant or a struct.
DefKind
What kind of definition something is; e.g., mod vs struct. enum DefPathData may need to be updated if a new variant is added here.
Namespace
Different kinds of symbols can coexist even if they share the same textual name. Therefore, they each have a separate universe (known as a β€œnamespace”).
NonMacroAttrKind
An attribute that is not a macro; e.g., #[inline] or #[rustfmt::skip].
Res
The resolution of a path or export.