struct ProbeAllChoice<'db> {
candidates: RefCell<FxIndexMap<CandidateId, CandidateWithPrivate<'db>>>,
considering_visible_candidates: bool,
}Fields§
§candidates: RefCell<FxIndexMap<CandidateId, CandidateWithPrivate<'db>>>§considering_visible_candidates: boolImplementations§
Source§impl ProbeAllChoice<'_>
impl ProbeAllChoice<'_>
Trait Implementations§
Source§impl<'db> Debug for ProbeAllChoice<'db>
impl<'db> Debug for ProbeAllChoice<'db>
Source§impl<'db> ProbeChoice<'db> for ProbeAllChoice<'db>
impl<'db> ProbeChoice<'db> for ProbeAllChoice<'db>
type Choice = Infallible
type FinalChoice = ProbeAllChoice<'db>
Source§fn with_impl_or_trait_item<'a>(
this: &mut ProbeContext<'a, 'db, Self>,
items: &[(Name, AssocItemId)],
callback: impl FnMut(&mut ProbeContext<'a, 'db, Self>, CandidateId),
)
fn with_impl_or_trait_item<'a>( this: &mut ProbeContext<'a, 'db, Self>, items: &[(Name, AssocItemId)], callback: impl FnMut(&mut ProbeContext<'a, 'db, Self>, CandidateId), )
Finds the method with the appropriate name (or return type, as the case may be).
fn consider_candidates( this: &ProbeContext<'_, 'db, Self>, _self_ty: Ty<'db>, candidates: Vec<&Candidate<'db>>, ) -> ControlFlow<Self::Choice>
fn consider_private_candidates( this: &mut ProbeContext<'_, 'db, Self>, self_ty: Ty<'db>, instantiate_self_ty_obligations: &[Obligation<'db, Predicate<'db>>], )
fn map_choice_pick( choice: Self::Choice, _f: impl FnOnce(Pick<'db>) -> Pick<'db>, ) -> Self::Choice
fn check_by_value_method_shadowing( _this: &mut ProbeContext<'_, 'db, Self>, _by_value_pick: &Self::Choice, _step: &CandidateStep<'db>, _self_ty: Ty<'db>, _instantiate_self_ty_obligations: &[Obligation<'db, Predicate<'db>>], ) -> ControlFlow<Self::Choice>
fn check_autorefed_method_shadowing( _this: &mut ProbeContext<'_, 'db, Self>, _autoref_pick: &Self::Choice, _step: &CandidateStep<'db>, _self_ty: Ty<'db>, _instantiate_self_ty_obligations: &[Obligation<'db, Predicate<'db>>], ) -> ControlFlow<Self::Choice>
fn final_choice_from_err(_err: MethodError<'db>) -> Self::FinalChoice
fn choose(this: ProbeContext<'_, 'db, Self>) -> Self::FinalChoice
Auto Trait Implementations§
impl<'db> !Freeze for ProbeAllChoice<'db>
impl<'db> !RefUnwindSafe for ProbeAllChoice<'db>
impl<'db> Send for ProbeAllChoice<'db>
impl<'db> !Sync for ProbeAllChoice<'db>
impl<'db> Unpin for ProbeAllChoice<'db>
impl<'db> UnsafeUnpin for ProbeAllChoice<'db>
impl<'db> UnwindSafe for ProbeAllChoice<'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