Enum rustc_typeck::hir::map::DefPathData   
                   
                       [−]
                   
               [src]
pub enum DefPathData {
    CrateRoot,
    InlinedRoot(Box<InlinedRootPath>),
    Misc,
    Impl,
    TypeNs(Name),
    ValueNs(Name),
    Module(Name),
    MacroDef(Name),
    ClosureExpr,
    TypeParam(Name),
    LifetimeDef(Name),
    EnumVariant(Name),
    Field(Name),
    StructCtor,
    Initializer,
    Binding(Name),
}Unstable (
rustc_private)Variants
CrateRootUnstable (
rustc_private)The crate root (marker)
InlinedRoot(Box<InlinedRootPath>)Unstable (
rustc_private)An inlined root
MiscUnstable (
rustc_private)ImplUnstable (
rustc_private)An impl
TypeNs(Name)Unstable (
rustc_private)Something in the type NS
ValueNs(Name)Unstable (
rustc_private)Something in the value NS
Module(Name)Unstable (
rustc_private)A module declaration
MacroDef(Name)Unstable (
rustc_private)A macro rule
ClosureExprUnstable (
rustc_private)A closure expression
TypeParam(Name)Unstable (
rustc_private)A type parameter (generic parameter)
LifetimeDef(Name)Unstable (
rustc_private)A lifetime definition
EnumVariant(Name)Unstable (
rustc_private)A variant of a enum
Field(Name)Unstable (
rustc_private)A struct field
StructCtorUnstable (
rustc_private)Implicit ctor for a tuple-like struct
InitializerUnstable (
rustc_private)Initializer for a const
Binding(Name)Unstable (
rustc_private)Pattern binding
Methods
impl DefPathData
fn as_interned_str(&self) -> InternedString
fn to_string(&self) -> String
Trait Implementations
Derived Implementations
impl Decodable for DefPathData
fn decode<__D>(__arg_0: &mut __D) -> Result<DefPathData, __D::Error> where __D: Decoder
impl Encodable for DefPathData
impl Hash for DefPathData
fn hash<__H>(&self, __arg_0: &mut __H) where __H: Hasher
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl Eq for DefPathData
impl PartialEq<DefPathData> for DefPathData
fn eq(&self, __arg_0: &DefPathData) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &DefPathData) -> bool
This method tests for !=.
impl Debug for DefPathData
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Clone for DefPathData
fn clone(&self) -> DefPathData
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more