Enum rustc_typeck::hir::map::definitions::DefPathData
[−]
[src]
pub enum DefPathData { CrateRoot, Misc, Impl, TypeNs(InternedString), ValueNs(InternedString), Module(InternedString), MacroDef(InternedString), ClosureExpr, TypeParam(InternedString), LifetimeDef(InternedString), EnumVariant(InternedString), Field(InternedString), StructCtor, Initializer, Binding(InternedString), ImplTrait, Typeof, }
🔬 This is a nightly-only experimental API. (
rustc_private
)Variants
CrateRoot
🔬 This is a nightly-only experimental API. (
rustc_private
)The crate root (marker)
Misc
🔬 This is a nightly-only experimental API. (
rustc_private
)Impl
🔬 This is a nightly-only experimental API. (
rustc_private
)An impl
TypeNs(InternedString)
🔬 This is a nightly-only experimental API. (
rustc_private
)Something in the type NS
ValueNs(InternedString)
🔬 This is a nightly-only experimental API. (
rustc_private
)Something in the value NS
Module(InternedString)
🔬 This is a nightly-only experimental API. (
rustc_private
)A module declaration
MacroDef(InternedString)
🔬 This is a nightly-only experimental API. (
rustc_private
)A macro rule
ClosureExpr
🔬 This is a nightly-only experimental API. (
rustc_private
)A closure expression
TypeParam(InternedString)
🔬 This is a nightly-only experimental API. (
rustc_private
)A type parameter (generic parameter)
LifetimeDef(InternedString)
🔬 This is a nightly-only experimental API. (
rustc_private
)A lifetime definition
EnumVariant(InternedString)
🔬 This is a nightly-only experimental API. (
rustc_private
)A variant of a enum
Field(InternedString)
🔬 This is a nightly-only experimental API. (
rustc_private
)A struct field
StructCtor
🔬 This is a nightly-only experimental API. (
rustc_private
)Implicit ctor for a tuple-like struct
Initializer
🔬 This is a nightly-only experimental API. (
rustc_private
)Initializer for a const
Binding(InternedString)
🔬 This is a nightly-only experimental API. (
rustc_private
)Pattern binding
ImplTrait
🔬 This is a nightly-only experimental API. (
rustc_private
)An impl Trait
type node.
Typeof
🔬 This is a nightly-only experimental API. (
rustc_private
)A typeof
type node.
Methods
impl DefPathData
[src]
fn get_opt_name(&self) -> Option<Symbol>
🔬 This is a nightly-only experimental API. (
rustc_private
)fn as_interned_str(&self) -> InternedString
🔬 This is a nightly-only experimental API. (
rustc_private
)fn to_string(&self) -> String
🔬 This is a nightly-only experimental API. (
rustc_private
)Trait Implementations
impl Decodable for DefPathData
[src]
fn decode<__D>(__arg_0: &mut __D) -> Result<DefPathData, __D::Error> where __D: Decoder
🔬 This is a nightly-only experimental API. (
rustc_private
)impl PartialEq<DefPathData> 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 Hash for DefPathData
[src]
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: Hasher
1.3.0
Feeds a slice of this type into the state provided.
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
impl Eq for DefPathData
[src]
impl Debug for DefPathData
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.