pub trait GeneralizerDelegate<'tcx> {
    // Required methods
    fn param_env(&self) -> ParamEnv<'tcx>;
    fn forbid_inference_vars() -> bool;
    fn generalize_region(&mut self, universe: UniverseIndex) -> Region<'tcx>;
}
Expand description

Abstracts the handling of region vars between HIR and MIR/NLL typechecking in the generalizer code.

Required Methods§

source

fn param_env(&self) -> ParamEnv<'tcx>

source

fn forbid_inference_vars() -> bool

source

fn generalize_region(&mut self, universe: UniverseIndex) -> Region<'tcx>

Implementors§

source§

impl<'tcx> GeneralizerDelegate<'tcx> for CombineDelegate<'_, 'tcx>

source§

impl<'tcx, T> GeneralizerDelegate<'tcx> for Twhere T: TypeRelatingDelegate<'tcx>,