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: SymbolValueNs(Symbol)Something in the value namespace.
Tuple Fields of ValueNs
0: SymbolMacroNs(Symbol)Something in the macro namespace.
Tuple Fields of MacroNs
0: SymbolLifetimeNs(Symbol)Something in the lifetime namespace.
Tuple Fields of LifetimeNs
0: SymbolA 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 bytes
- Misc: 0 bytes
- Impl: 0 bytes
- TypeNs: 4 bytes
- ValueNs: 4 bytes
- MacroNs: 4 bytes
- LifetimeNs: 4 bytes
- ClosureExpr: 0 bytes
- Ctor: 0 bytes
- AnonConst: 0 bytes
- ImplTrait: 0 bytes