Structs§
- Bound
VarReplacer πSubstitution for late bound variables - EVar
Subst πFolder Substitution for existential variables - FnMut
Delegate π - Generic
Args πDelegate A substitution with an explicit list of generic arguments. - Generics
Subst πFolder Substitution for generics, i.e., early bound types, lifetimes, const generics, and refinements. Note that a substitution for refinement parameters (a list of expressions) must always be specified, while the behavior of other generics parameters (types, lifetimes and consts) can be configured withGenericsSubstDelegate
. - Generics
Subst πForSort A substitution meant to be used only for sorts. Itβll panic if used on a type. This is used to break cycles during wf checking. During wf-checking we userty::Sort
, but we canβt yet generate (in general) anrty::GenericArg
because conversion fromfhir
intorty
requires the results of wf checking. Perhaps, we could also solve this problem by doing wf-checking with a different βIRβ for sorts that sits in betweenfhir
andrty
. - Sort
Subst π
Traits§
- Sort
Subst πDelegate