[−][src]Struct rustc_infer::infer::resolve::UnresolvedTypeFinder
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]
Trait Implementations
impl<'a, 'tcx> TypeVisitor<'tcx> for UnresolvedTypeFinder<'a, 'tcx>[src]
type BreakTy = (Ty<'tcx>, Option<Span>)
pub fn visit_ty(&mut self, t: Ty<'tcx>) -> ControlFlow<Self::BreakTy>[src]
pub fn visit_binder<T>(
&mut self,
t: &Binder<T>
) -> ControlFlow<Self::BreakTy, ()> where
T: TypeFoldable<'tcx>, [src]
&mut self,
t: &Binder<T>
) -> ControlFlow<Self::BreakTy, ()> where
T: TypeFoldable<'tcx>,
pub fn visit_region(
&mut self,
r: &'tcx RegionKind
) -> ControlFlow<Self::BreakTy, ()>[src]
&mut self,
r: &'tcx RegionKind
) -> ControlFlow<Self::BreakTy, ()>
pub fn visit_const(
&mut self,
c: &'tcx Const<'tcx>
) -> ControlFlow<Self::BreakTy, ()>[src]
&mut self,
c: &'tcx Const<'tcx>
) -> ControlFlow<Self::BreakTy, ()>
pub 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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.