Struct rustc_typeck::hir::map::DefKey [] [src]

pub struct DefKey {
    pub parent: Option<DefIndex>,
    pub disambiguated_data: DisambiguatedDefPathData,
}
🔬 This is a nightly-only experimental API. (rustc_private)

A unique identifier that we can use to lookup a definition precisely. It combines the index of the definition's parent (if any) with a DisambiguatedDefPathData.

Fields

🔬 This is a nightly-only experimental API. (rustc_private)

Parent path.

🔬 This is a nightly-only experimental API. (rustc_private)

Identifier of this node.

Trait Implementations

impl Decodable for DefKey
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

impl PartialEq<DefKey> for DefKey
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for DefKey
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Clone for DefKey
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for DefKey
[src]

impl Debug for DefKey
[src]

Formats the value using the given formatter.

impl Encodable for DefKey
[src]

🔬 This is a nightly-only experimental API. (rustc_private)