pub(crate) enum QualifyCandidate<'db> {
QualifierStart(Path, Option<GenericArgList>),
UnqualifiedName(Option<GenericArgList>),
TraitAssocItem(Path, PathSegment),
TraitMethod(&'db RootDatabase, MethodCallExpr),
ImplMethod(&'db RootDatabase, MethodCallExpr, Function),
}Variants§
QualifierStart(Path, Option<GenericArgList>)
UnqualifiedName(Option<GenericArgList>)
TraitAssocItem(Path, PathSegment)
TraitMethod(&'db RootDatabase, MethodCallExpr)
ImplMethod(&'db RootDatabase, MethodCallExpr, Function)
Implementations§
Source§impl QualifyCandidate<'_>
impl QualifyCandidate<'_>
pub(crate) fn qualify( &self, replacer: impl FnMut(String), editor: &SyntaxEditor, import: &ModPath, item: ItemInNs, edition: Edition, )
fn qualify_fn_call( db: &RootDatabase, mcall_expr: &MethodCallExpr, editor: &SyntaxEditor, import: Path, hir_fn: &Function, ) -> Option<()>
fn qualify_trait_method( db: &RootDatabase, mcall_expr: &MethodCallExpr, editor: &SyntaxEditor, import: Path, item: ItemInNs, ) -> Option<()>
Auto Trait Implementations§
impl<'db> Freeze for QualifyCandidate<'db>
impl<'db> !RefUnwindSafe for QualifyCandidate<'db>
impl<'db> !Send for QualifyCandidate<'db>
impl<'db> !Sync for QualifyCandidate<'db>
impl<'db> Unpin for QualifyCandidate<'db>
impl<'db> UnsafeUnpin for QualifyCandidate<'db>
impl<'db> !UnwindSafe for QualifyCandidate<'db>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more