Expand description
Code shared by trait and projection goals for candidate assembly.
Modules§
- structural_
traits 🔒 - Code which is used by built-in goals that match “structurally”, such a auto
traits,
Copy/Clone.
Structs§
- Candidate 🔒
- A candidate is a possible way to prove a goal.
- Failed
Candidate 🔒Info - This is currently used to track the CandidateHeadUsages of all failed
ParamEnvcandidates. This is then used to ignore their head usages in case there’s another always applicableParamEnvcandidate. Look at howparam_env_head_usagesis used in the code for more details. - Find
Param 🔒InClause
Enums§
- Allow
Inference 🔒Constraints - Assemble
Candidates 🔒From - Allows callers of
assemble_and_evaluate_candidatesto choose whether to limit candidate assembly to param-env and alias-bound candidates.
Traits§
- Goal
Kind 🔒 - Methods used to assemble candidates for either trait or projection goals.