Struct rustc_typeck::hir::map::DefPath
[−]
[src]
pub struct DefPath { pub data: Vec<DisambiguatedDefPathData>, pub krate: CrateNum, }
🔬 This is a nightly-only experimental API. (
rustc_private
)Fields
data: Vec<DisambiguatedDefPathData>
🔬 This is a nightly-only experimental API. (
rustc_private
)the path leading from the crate root to the item
krate: CrateNum
🔬 This is a nightly-only experimental API. (
rustc_private
)what krate root is this path relative to?
Methods
impl DefPath
[src]
fn is_local(&self) -> bool
🔬 This is a nightly-only experimental API. (
rustc_private
)fn make<FN>(krate: CrateNum, start_index: DefIndex, get_key: FN) -> DefPath where FN: FnMut(DefIndex) -> DefKey
🔬 This is a nightly-only experimental API. (
rustc_private
)fn to_string(&self, tcx: TyCtxt) -> String
🔬 This is a nightly-only experimental API. (
rustc_private
)fn deterministic_hash(&self, tcx: TyCtxt) -> u64
🔬 This is a nightly-only experimental API. (
rustc_private
)fn deterministic_hash_to<H>(&self, tcx: TyCtxt, state: &mut H) where H: Hasher
🔬 This is a nightly-only experimental API. (
rustc_private
)Trait Implementations
impl Decodable for DefPath
[src]
fn decode<__D>(__arg_0: &mut __D) -> Result<DefPath, __D::Error> where __D: Decoder
🔬 This is a nightly-only experimental API. (
rustc_private
)impl PartialEq<DefPath> for DefPath
[src]
fn eq(&self, __arg_0: &DefPath) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DefPath) -> bool
This method tests for !=
.
impl Hash for DefPath
[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 DefPath
[src]
fn clone(&self) -> DefPath
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 DefPath
[src]
impl Debug for DefPath
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.