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
ParamEnv
candidates. This is then used to ignore their head usages in case thereโs another always applicableParamEnv
candidate. Look at howparam_env_head_usages
is used in the code for more details. - Find
Param ๐InClause
Enumsยง
- Alias
Bound ๐Kind - Allow
Inference ๐Constraints - Assemble
Candidates ๐From - Allows callers of
assemble_and_evaluate_candidates
to 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.