Enum rustc::hir::map::definitions::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[src]
fn as_interned_str(&self) -> InternedString
fn to_string(&self) -> String
Trait Implementations
Derived Implementations
impl Decodable for DefPathData[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<DefPathData, __D::Error>
impl Encodable for DefPathData[src]
impl Hash for DefPathData[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
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[src]
impl PartialEq for DefPathData[src]
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[src]
impl Clone for DefPathData[src]
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