Struct rustc_trait_selection::solve::normalize::NormalizationFolder
source · struct NormalizationFolder<'me, 'tcx> {
at: At<'me, 'tcx>,
fulfill_cx: FulfillmentCtxt<'tcx>,
depth: usize,
universes: Vec<Option<UniverseIndex>>,
}
Fields§
§at: At<'me, 'tcx>
§fulfill_cx: FulfillmentCtxt<'tcx>
§depth: usize
§universes: Vec<Option<UniverseIndex>>
Implementations§
source§impl<'tcx> NormalizationFolder<'_, 'tcx>
impl<'tcx> NormalizationFolder<'_, 'tcx>
fn normalize_alias_ty( &mut self, alias: AliasTy<'tcx> ) -> Result<Ty<'tcx>, Vec<FulfillmentError<'tcx>>>
fn normalize_unevaluated_const( &mut self, ty: Ty<'tcx>, uv: UnevaluatedConst<'tcx> ) -> Result<Const<'tcx>, Vec<FulfillmentError<'tcx>>>
Trait Implementations§
source§impl<'tcx> FallibleTypeFolder<TyCtxt<'tcx>> for NormalizationFolder<'_, 'tcx>
impl<'tcx> FallibleTypeFolder<TyCtxt<'tcx>> for NormalizationFolder<'_, 'tcx>
type Error = Vec<FulfillmentError<'tcx>, Global>
fn interner(&self) -> TyCtxt<'tcx>
fn try_fold_binder<T: TypeFoldable<TyCtxt<'tcx>>>( &mut self, t: Binder<'tcx, T> ) -> Result<Binder<'tcx, T>, Self::Error>
fn try_fold_ty(&mut self, ty: Ty<'tcx>) -> Result<Ty<'tcx>, Self::Error>
fn try_fold_const( &mut self, ct: Const<'tcx> ) -> Result<Const<'tcx>, Self::Error>
fn try_fold_region( &mut self, r: <I as Interner>::Region ) -> Result<<I as Interner>::Region, Self::Error>
Auto Trait Implementations§
impl<'me, 'tcx> !RefUnwindSafe for NormalizationFolder<'me, 'tcx>
impl<'me, 'tcx> !Send for NormalizationFolder<'me, 'tcx>
impl<'me, 'tcx> !Sync for NormalizationFolder<'me, 'tcx>
impl<'me, 'tcx> Unpin for NormalizationFolder<'me, 'tcx>
impl<'me, 'tcx> !UnwindSafe for NormalizationFolder<'me, '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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 88 bytes