struct FullResolver<'a, 'genv, 'tcx> {
infcx: &'a mut InferCtxt<'genv, 'tcx>,
}
Fields§
§infcx: &'a mut InferCtxt<'genv, 'tcx>
Trait Implementations§
Source§impl FallibleTypeFolder for FullResolver<'_, '_, '_>
impl FallibleTypeFolder for FullResolver<'_, '_, '_>
type Error = ()
fn try_fold_sort(&mut self, sort: &Sort) -> Result<Sort, Self::Error>
fn try_fold_binder<T>(
&mut self,
t: &Binder<T>,
) -> Result<Binder<T>, Self::Error>where
T: TypeFoldable,
fn try_fold_ty(&mut self, ty: &Ty) -> Result<Ty, Self::Error>
fn try_fold_bty(&mut self, bty: &BaseTy) -> Result<BaseTy, Self::Error>
fn try_fold_subset_ty( &mut self, constr: &SubsetTy, ) -> Result<SubsetTy, Self::Error>
fn try_fold_region(&mut self, re: &Region) -> Result<Region, Self::Error>
fn try_fold_const(&mut self, c: &Const) -> Result<Const, Self::Error>
fn try_fold_expr(&mut self, expr: &Expr) -> Result<Expr, Self::Error>
Auto Trait Implementations§
impl<'a, 'genv, 'tcx> Freeze for FullResolver<'a, 'genv, 'tcx>
impl<'a, 'genv, 'tcx> !RefUnwindSafe for FullResolver<'a, 'genv, 'tcx>
impl<'a, 'genv, 'tcx> !Send for FullResolver<'a, 'genv, 'tcx>
impl<'a, 'genv, 'tcx> !Sync for FullResolver<'a, 'genv, 'tcx>
impl<'a, 'genv, 'tcx> Unpin for FullResolver<'a, 'genv, 'tcx>
impl<'a, 'genv, 'tcx> !UnwindSafe for FullResolver<'a, 'genv, 'tcx>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more