Module assembly

Module assembly 

Source
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.
FailedCandidateInfo ๐Ÿ”’
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 applicable ParamEnv candidate. Look at how param_env_head_usages is used in the code for more details.
FindParamInClause ๐Ÿ”’

Enumsยง

AliasBoundKind ๐Ÿ”’
AllowInferenceConstraints ๐Ÿ”’
AssembleCandidatesFrom ๐Ÿ”’
Allows callers of assemble_and_evaluate_candidates to choose whether to limit candidate assembly to param-env and alias-bound candidates.

Traitsยง

GoalKind ๐Ÿ”’
Methods used to assemble candidates for either trait or projection goals.