Enum rustc_hir::definitions::DefPathData [−][src]
pub enum DefPathData {
CrateRoot,
Misc,
Impl,
ForeignMod,
TypeNs(Symbol),
ValueNs(Symbol),
MacroNs(Symbol),
LifetimeNs(Symbol),
ClosureExpr,
Ctor,
AnonConst,
ImplTrait,
}Variants
CrateRoot
The crate root (marker).
Misc
Impl
An impl.
ForeignMod
An extern block.
TypeNs(Symbol)
Tuple Fields
0: SymbolSomething in the type namespace.
ValueNs(Symbol)
Tuple Fields
0: SymbolSomething in the value namespace.
MacroNs(Symbol)
Tuple Fields
0: SymbolSomething in the macro namespace.
LifetimeNs(Symbol)
Tuple Fields
0: SymbolSomething in the lifetime namespace.
ClosureExpr
A closure expression.
Ctor
Implicit constructor for a unit or tuple-like struct or enum variant.
AnonConst
A constant expression (see {ast,hir}::AnonConst).
ImplTrait
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 bytesForeignMod: 0 bytesTypeNs: 4 bytesValueNs: 4 bytesMacroNs: 4 bytesLifetimeNs: 4 bytesClosureExpr: 0 bytesCtor: 0 bytesAnonConst: 0 bytesImplTrait: 0 bytes
