Module traits
Expand description
Trait Resolution. See the rustc-dev-guide for more information on how this works.
Structs§
- Obligation
- An
Obligationrepresents some trait reference (e.g.,i32: Eq) for which the “impl_source” must be found. The process of finding an “impl_source” is called “resolving” theObligation. This process consists of either identifying animpl(e.g.,impl Eq for i32) that satisfies the obligation, or else finding a bound that is in scope. The eventual result is usually aSelection(defined below). - Obligation
Cause - The reason why we incurred this obligation; used for error reporting.
Type Aliases§
- Obligation
Inspector - A callback that can be provided to
inspect_typeck. Invoked on evaluation of root obligations.