Enum rustc_hir::definitions::DefPathData [−][src]
pub enum DefPathData {
CrateRoot,
Misc,
Impl,
TypeNs(Symbol),
ValueNs(Symbol),
MacroNs(Symbol),
LifetimeNs(Symbol),
ClosureExpr,
Ctor,
AnonConst,
ImplTrait,
}
Variants
The crate root (marker).
An impl.
TypeNs(Symbol)
Something in the type namespace.
Tuple Fields of TypeNs
0: Symbol
ValueNs(Symbol)
Something in the value namespace.
Tuple Fields of ValueNs
0: Symbol
MacroNs(Symbol)
Something in the macro namespace.
Tuple Fields of MacroNs
0: Symbol
LifetimeNs(Symbol)
Something in the lifetime namespace.
Tuple Fields of LifetimeNs
0: Symbol
A closure expression.
Implicit constructor for a unit or tuple-like struct or enum variant.
A constant expression (see {ast,hir}::AnonConst
).
An impl Trait
type node.
Implementations
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DefPathData
impl Send for DefPathData
impl Sync for DefPathData
impl Unpin for DefPathData
impl UnwindSafe for DefPathData
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes
Size for each variant:
CrateRoot
: 0 bytesMisc
: 0 bytesImpl
: 0 bytesTypeNs
: 4 bytesValueNs
: 4 bytesMacroNs
: 4 bytesLifetimeNs
: 4 bytesClosureExpr
: 0 bytesCtor
: 0 bytesAnonConst
: 0 bytesImplTrait
: 0 bytes