struct FreeVarFolder<'tcx, 'a> {
cx: TyCtxt<'tcx>,
free_var_cnt: usize,
infcx: &'a InferCtxt<'tcx>,
span: Span,
}
Fields§
§cx: TyCtxt<'tcx>
§free_var_cnt: usize
§infcx: &'a InferCtxt<'tcx>
§span: Span
Implementations§
source§impl<'tcx, 'a> FreeVarFolder<'tcx, 'a>
impl<'tcx, 'a> FreeVarFolder<'tcx, 'a>
Trait Implementations§
source§impl<'tcx> TypeFolder<TyCtxt<'tcx>> for FreeVarFolder<'tcx, '_>
impl<'tcx> TypeFolder<TyCtxt<'tcx>> for FreeVarFolder<'tcx, '_>
fn cx(&self) -> TyCtxt<'tcx>
fn fold_region(&mut self, _: Region<'tcx>) -> Region<'tcx>
fn fold_binder<T>(&mut self, t: Binder<I, T>) -> Binder<I, T>where
T: TypeFoldable<I>,
fn fold_ty(&mut self, t: <I as Interner>::Ty) -> <I as Interner>::Ty
fn fold_const(&mut self, c: <I as Interner>::Const) -> <I as Interner>::Const
fn fold_predicate( &mut self, p: <I as Interner>::Predicate, ) -> <I as Interner>::Predicate
Auto Trait Implementations§
impl<'tcx, 'a> Freeze for FreeVarFolder<'tcx, 'a>
impl<'tcx, 'a> !RefUnwindSafe for FreeVarFolder<'tcx, 'a>
impl<'tcx, 'a> !Send for FreeVarFolder<'tcx, 'a>
impl<'tcx, 'a> !Sync for FreeVarFolder<'tcx, 'a>
impl<'tcx, 'a> Unpin for FreeVarFolder<'tcx, 'a>
impl<'tcx, 'a> !UnwindSafe for FreeVarFolder<'tcx, 'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more