Struct rustc::hir::def::PathResolution
[−]
[src]
pub struct PathResolution { /* fields omitted */ }🔬 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?
The result of resolving a path before lowering to HIR.
base_def is definition of resolved part of the
path, unresolved_segments is the number of unresolved
segments.
module::Type::AssocX::AssocY::MethodOrAssocType
~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
base_def unresolved_segments = 3
<T as Trait>::AssocX::AssocY::MethodOrAssocType ^~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ base_def unresolved_segments = 2
Methods
impl PathResolution[src]
pub fn new(def: Def) -> Self[src]
🔬 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?
pub fn with_unresolved_segments(def: Def, unresolved_segments: usize) -> Self[src]
🔬 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?
pub fn base_def(&self) -> Def[src]
🔬 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?
pub fn unresolved_segments(&self) -> usize[src]
🔬 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?
pub fn kind_name(&self) -> &'static str[src]
🔬 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 Copy for PathResolution[src]
impl Clone for PathResolution[src]
fn clone(&self) -> PathResolution[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more