Struct rustc::hir::def::PathResolution
[−]
[src]
pub struct PathResolution { /* fields omitted */ }
🔬 This is a nightly-only experimental API. (
rustc_private
)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]
fn new(def: Def) -> Self
🔬 This is a nightly-only experimental API. (
rustc_private
)fn with_unresolved_segments(def: Def, unresolved_segments: usize) -> Self
🔬 This is a nightly-only experimental API. (
rustc_private
)fn base_def(&self) -> Def
🔬 This is a nightly-only experimental API. (
rustc_private
)fn unresolved_segments(&self) -> usize
🔬 This is a nightly-only experimental API. (
rustc_private
)fn kind_name(&self) -> &'static str
🔬 This is a nightly-only experimental API. (
rustc_private
)Trait Implementations
impl Copy for PathResolution
[src]
impl Clone for PathResolution
[src]
fn clone(&self) -> PathResolution
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