Module rustc_middle::traits::select[−][src]

Expand description

Candidate selection. See the rustc dev guide for more information on how this works.

Structs

Indicates that trait evaluation caused overflow.

Enums

The result of trait evaluation. The order is important here as the evaluation of a list is the maximum of the evaluations.

The selection process begins by considering all impls, where clauses, and so forth that might resolve an obligation. Sometimes we’ll be able to say definitively that (e.g.) an impl does not apply to the obligation: perhaps it is defined for usize but the obligation is for i32. In that case, we drop the impl out of the list. But the other cases are considered candidates.

Type Definitions