Enum ra_ap_hir::PathResolution [−][src]
pub enum PathResolution { Def(ModuleDef), Local(Local), TypeParam(TypeParam), ConstParam(ConstParam), SelfType(Impl), Macro(MacroDef), AssocItem(AssocItem), }
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)
Macro(MacroDef)
AssocItem(AssocItem)
Implementations
pub fn assoc_type_shorthand_candidates<R>(
&self,
db: &dyn HirDatabase,
cb: impl FnMut(&Name, TypeAlias) -> Option<R>
) -> Option<R>
pub fn assoc_type_shorthand_candidates<R>(
&self,
db: &dyn HirDatabase,
cb: impl FnMut(&Name, TypeAlias) -> Option<R>
) -> Option<R>
Returns an iterator over associated types that may be specified after this path (using
Ty::Assoc
syntax).
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
Cast a value to type U
using CastTo
.
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
impl<T> Any for T where
T: Any,