Struct rustc::hir::map::definitions::DisambiguatedDefPathData [] [src]

pub struct DisambiguatedDefPathData {
    pub data: DefPathData,
    pub disambiguator: u32,
}
🔬 This is a nightly-only experimental API. (rustc_private)

Pair of DefPathData and an integer disambiguator. The integer is normally 0, but in the event that there are multiple defs with the same parent and data, we use this field to disambiguate between them. This introduces some artificial ordering dependency but means that if you have (e.g.) two impls for the same type in the same module, they do get distinct def-ids.

Fields

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

Trait Implementations

impl Clone for DisambiguatedDefPathData
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for DisambiguatedDefPathData
[src]

Formats the value using the given formatter.

impl PartialEq for DisambiguatedDefPathData
[src]

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

This method tests for !=.

impl Eq for DisambiguatedDefPathData
[src]

impl Hash for DisambiguatedDefPathData
[src]

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

Feeds a slice of this type into the state provided.

impl Encodable for DisambiguatedDefPathData
[src]

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

deprecated in favor of rustc-serialize on crates.io

impl Decodable for DisambiguatedDefPathData
[src]

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

deprecated in favor of rustc-serialize on crates.io