[−][src]Struct rustc_typeck::check::writeback::Resolver
The Resolver. This is the type folding engine that detects unresolved types and so forth.
Fields
tcx: TyCtxt<'tcx>infcx: &'cx InferCtxt<'cx, 'tcx>span: &'cx dyn Locatablebody: &'tcx Body<'tcx>replaced_with_error: boolSet to true if any Ty or ty::Const had to be replaced with an Error.
Implementations
impl<'cx, 'tcx> Resolver<'cx, 'tcx>[src]
pub(in check::writeback) fn new(
fcx: &'cx FnCtxt<'cx, 'tcx>,
span: &'cx dyn Locatable,
body: &'tcx Body<'tcx>
) -> Resolver<'cx, 'tcx>[src]
fcx: &'cx FnCtxt<'cx, 'tcx>,
span: &'cx dyn Locatable,
body: &'tcx Body<'tcx>
) -> Resolver<'cx, 'tcx>
pub(in check::writeback) fn report_type_error(
&self,
t: Ty<'tcx>
)[src]
&self,
t: Ty<'tcx>
)
pub(in check::writeback) fn report_const_error(
&self,
c: &'tcx Const<'tcx>
)[src]
&self,
c: &'tcx Const<'tcx>
)
Trait Implementations
impl<'cx, 'tcx> TypeFolder<'tcx> for Resolver<'cx, 'tcx>[src]
pub fn tcx<'a>(&'a self) -> TyCtxt<'tcx>[src]
pub fn fold_ty(&mut self, t: Ty<'tcx>) -> Ty<'tcx>[src]
pub fn fold_region(&mut self, r: Region<'tcx>) -> Region<'tcx>[src]
pub fn fold_const(&mut self, ct: &'tcx Const<'tcx>) -> &'tcx Const<'tcx>[src]
pub fn fold_binder<T>(&mut self, t: Binder<T>) -> Binder<T> where
T: TypeFoldable<'tcx>, [src]
T: TypeFoldable<'tcx>,
Auto Trait Implementations
impl<'cx, 'tcx> !RefUnwindSafe for Resolver<'cx, 'tcx>
impl<'cx, 'tcx> !Send for Resolver<'cx, 'tcx>
impl<'cx, 'tcx> !Sync for Resolver<'cx, 'tcx>
impl<'cx, 'tcx> Unpin for Resolver<'cx, 'tcx> where
'tcx: 'cx,
'tcx: 'cx,
impl<'cx, 'tcx> !UnwindSafe for Resolver<'cx, '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.