Struct rustc_traits::chalk::lowering::NamedBoundVarSubstitutor [−][src]
struct NamedBoundVarSubstitutor<'a, 'tcx> {
tcx: TyCtxt<'tcx>,
binder_index: DebruijnIndex,
named_parameters: &'a BTreeMap<DefId, u32>,
}Expand description
This is used to replace BoundRegionKind::BrNamed with BoundRegionKind::BrAnon.
Note: we assume that we will always have room for more bound vars. (i.e. we
won’t ever hit the u32 limit in BrAnons).
Fields
tcx: TyCtxt<'tcx>binder_index: DebruijnIndexnamed_parameters: &'a BTreeMap<DefId, u32>Implementations
impl<'a, 'tcx> NamedBoundVarSubstitutor<'a, 'tcx>[src]
impl<'a, 'tcx> NamedBoundVarSubstitutor<'a, 'tcx>[src]Trait Implementations
impl<'a, 'tcx> TypeFolder<'tcx> for NamedBoundVarSubstitutor<'a, 'tcx>[src]
impl<'a, 'tcx> TypeFolder<'tcx> for NamedBoundVarSubstitutor<'a, 'tcx>[src]fn tcx<'b>(&'b self) -> TyCtxt<'tcx>[src]
fn fold_binder<T: TypeFoldable<'tcx>>(
&mut self,
t: Binder<'tcx, T>
) -> Binder<'tcx, T>[src]
&mut self,
t: Binder<'tcx, T>
) -> Binder<'tcx, T>