[−][src]Enum rustc_hir::definitions::DefPathData

pub enum DefPathData {
    CrateRoot,
    Misc,
    Impl,
    TypeNs(Symbol),
    ValueNs(Symbol),
    MacroNs(Symbol),
    LifetimeNs(Symbol),
    ClosureExpr,
    Ctor,
    AnonConst,
    ImplTrait,
}

Variants

CrateRoot

The crate root (marker).

Misc
Impl

An impl.

TypeNs(Symbol)

Something in the type namespace.

ValueNs(Symbol)

Something in the value namespace.

MacroNs(Symbol)

Something in the macro namespace.

LifetimeNs(Symbol)

Something 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

impl DefPathData[src]

pub fn get_opt_name(&self) -> Option<Symbol>[src]

pub fn name(&self) -> DefPathDataName[src]

Trait Implementations

impl Clone for DefPathData[src]

impl Copy for DefPathData[src]

impl Debug for DefPathData[src]

impl<__D: Decoder> Decodable<__D> for DefPathData[src]

impl Display for DefPathData[src]

impl<__E: Encoder> Encodable<__E> for DefPathData[src]

impl Eq for DefPathData[src]

impl Hash for DefPathData[src]

impl PartialEq<DefPathData> for DefPathData[src]

impl StructuralEq for DefPathData[src]

impl StructuralPartialEq for DefPathData[src]

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

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.