Expand description
This module is concerned with finding methods that a given type provides.
For details about how this works in rustc, see the method lookup page in the
rustc guide and the corresponding code mostly in
rustc_hir_typeck/method/probe.rs.
Modulesยง
- confirm ๐
- Confirmation step of method selection, meaning ensuring the selected candidate is valid and registering all obligations.
- probe ๐
- Candidate assembly and selection in method resolution - where we enumerate all candidates and choose the best one (or, in some IDE scenarios, just enumerate them all).
Structsยง
- Candidate
- Candidate
Step - Candidate
With Private - Inherent
Impls - Method
Callee ๐ - Method
Resolution Context - OneTrait
Impls ๐ - OneTrait
Impls ๐Builder - Pick
- Trait
Impls
Enumsยง
- Candidate
Id - Candidate
Kind - Candidate
Source - Method
Error - Mode
- Pick
Kind - Treat
NotYet ๐Defined Opaques - Used by
FnCtxt::lookup_method_for_operatorwith-Znext-solver.
Functionsยง
- crates_
containing_ ๐incoherent_ inherent_ impls - find_
matching_ ๐impl - is_
dyn_ method - Checks if the self parameter of
Traitmethod is thedyn Traitand we should call the method using the vtable. - lookup_
impl_ ๐assoc_ item_ for_ trait_ ref - lookup_
impl_ const - lookup_
impl_ ๐method_ query - Looks up the impl method that actually runs for the trait method
func. - self_
ty_ ๐has_ error_ constructor - simplified_
type_ module - with_
incoherent_ inherent_ impls