Module hir_ty::method_resolution
source · 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_analysis/check/method/probe.rs.
Structs§
- Inherent impls defined in some crate.
- Trait impls defined or available in some crate.
Enums§
- Whether we’re looking up a dotted method call (like
v.len()
) or a path (likeVec::new
). - This is used as a key for indexing impls.
Functions§
- Checks whether the impl satisfies the orphan rules.
- Checks if the self parameter of
Trait
method is thedyn Trait
and we should call the method using the vtable.