Modules§
Enums§
- Variance
Diag Info - Extra information about why we ended up with a particular variance.
This is only used to add more information to error messages, and
has no effect on soundness. While choosing the ‘wrong’
VarianceDiagInfomay lead to confusing notes in error messages, it will never cause a miscompilation or unsoundness.
Traits§
Functions§
- relate_
args_ invariantly - relate_
args_ with_ variances - structurally_
relate_ consts - Relates
aandbstructurally, calling the relation for all nested values. Any semantic equality, e.g. of alias consts, and inference variables have to be handled by the caller. - structurally_
relate_ tys - Relates
aandbstructurally, calling the relation for all nested values. Any semantic equality, e.g. of projections, and inference variables have to be handled by the caller.