Enum ra_ap_hir::PathResolution
source · pub enum PathResolution {
Def(ModuleDef),
Local(Local),
TypeParam(TypeParam),
ConstParam(ConstParam),
SelfType(Impl),
BuiltinAttr(BuiltinAttr),
ToolModule(ToolModule),
DeriveHelper(DeriveHelper),
}
Variants§
Def(ModuleDef)
An item
Local(Local)
A local binding (only value namespace)
TypeParam(TypeParam)
A type parameter
ConstParam(ConstParam)
A const parameter
SelfType(Impl)
BuiltinAttr(BuiltinAttr)
ToolModule(ToolModule)
DeriveHelper(DeriveHelper)
Trait Implementations§
source§impl Clone for PathResolution
impl Clone for PathResolution
source§fn clone(&self) -> PathResolution
fn clone(&self) -> PathResolution
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PathResolution
impl Debug for PathResolution
source§impl PartialEq<PathResolution> for PathResolution
impl PartialEq<PathResolution> for PathResolution
source§fn eq(&self, other: &PathResolution) -> bool
fn eq(&self, other: &PathResolution) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PathResolution
impl StructuralEq for PathResolution
impl StructuralPartialEq for PathResolution
Auto Trait Implementations§
impl RefUnwindSafe for PathResolution
impl Send for PathResolution
impl Sync for PathResolution
impl Unpin for PathResolution
impl UnwindSafe for PathResolution
Blanket Implementations§
§impl<T> Cast for T
impl<T> Cast for T
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.