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)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
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
data: DefPathData
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
disambiguator: u32
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Trait Implementations
impl Clone for DisambiguatedDefPathData[src]
impl Clone for DisambiguatedDefPathDatafn clone(&self) -> DisambiguatedDefPathData[src]
fn clone(&self) -> DisambiguatedDefPathDataReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq for DisambiguatedDefPathData[src]
impl PartialEq for DisambiguatedDefPathDatafn eq(&self, other: &DisambiguatedDefPathData) -> bool[src]
fn eq(&self, other: &DisambiguatedDefPathData) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &DisambiguatedDefPathData) -> bool[src]
fn ne(&self, other: &DisambiguatedDefPathData) -> boolThis method tests for !=.
impl Debug for DisambiguatedDefPathData[src]
impl Debug for DisambiguatedDefPathDatafn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Hash for DisambiguatedDefPathData[src]
impl Hash for DisambiguatedDefPathDatafn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Encodable for DisambiguatedDefPathData[src]
impl Encodable for DisambiguatedDefPathDatafn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>[src]
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Decodable for DisambiguatedDefPathData[src]
impl Decodable for DisambiguatedDefPathDataAuto Trait Implementations
impl !Send for DisambiguatedDefPathData
impl !Send for DisambiguatedDefPathDataimpl !Sync for DisambiguatedDefPathData
impl !Sync for DisambiguatedDefPathData