Struct rustc_infer::infer::resolve::UnresolvedTypeFinder [−][src]
pub struct UnresolvedTypeFinder<'a, 'tcx> {
infcx: &'a InferCtxt<'a, 'tcx>,
}Expand description
The unresolved type finder walks a type searching for type variables that don’t yet have a value. The first unresolved type is stored. It does not construct the fully resolved type (which might involve some hashing and so forth).
Fields
infcx: &'a InferCtxt<'a, 'tcx>Implementations
impl<'a, 'tcx> UnresolvedTypeFinder<'a, 'tcx>[src]
impl<'a, 'tcx> UnresolvedTypeFinder<'a, 'tcx>[src]Trait Implementations
impl<'a, 'tcx> TypeVisitor<'tcx> for UnresolvedTypeFinder<'a, 'tcx>[src]
impl<'a, 'tcx> TypeVisitor<'tcx> for UnresolvedTypeFinder<'a, 'tcx>[src]type BreakTy = (Ty<'tcx>, Option<Span>)
fn visit_ty(&mut self, t: Ty<'tcx>) -> ControlFlow<Self::BreakTy>[src]
fn visit_binder<T>(
&mut self,
t: &Binder<'tcx, T>
) -> ControlFlow<Self::BreakTy, ()> where
T: TypeFoldable<'tcx>, [src]
&mut self,
t: &Binder<'tcx, T>
) -> ControlFlow<Self::BreakTy, ()> where
T: TypeFoldable<'tcx>,
fn visit_region(
&mut self,
r: &'tcx RegionKind
) -> ControlFlow<Self::BreakTy, ()>[src]
&mut self,
r: &'tcx RegionKind
) -> ControlFlow<Self::BreakTy, ()>
fn visit_const(
&mut self,
c: &'tcx Const<'tcx>
) -> ControlFlow<Self::BreakTy, ()>[src]
&mut self,
c: &'tcx Const<'tcx>
) -> ControlFlow<Self::BreakTy, ()>
fn visit_predicate(
&mut self,
p: Predicate<'tcx>
) -> ControlFlow<Self::BreakTy, ()>[src]
&mut self,
p: Predicate<'tcx>
) -> ControlFlow<Self::BreakTy, ()>
Auto Trait Implementations
impl<'a, 'tcx> !RefUnwindSafe for UnresolvedTypeFinder<'a, 'tcx>
impl<'a, 'tcx> !Send for UnresolvedTypeFinder<'a, 'tcx>
impl<'a, 'tcx> !Sync for UnresolvedTypeFinder<'a, 'tcx>
impl<'a, 'tcx> Unpin for UnresolvedTypeFinder<'a, 'tcx> where
'tcx: 'a,
'tcx: 'a,
impl<'a, 'tcx> !UnwindSafe for UnresolvedTypeFinder<'a, 'tcx>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]
fn with_const(self) -> ConstnessAnd<Self>[src]
fn without_const(self) -> ConstnessAnd<Self>[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,