Trait rustc_trait_selection::traits::project::NormalizeExt
source · pub trait NormalizeExt<'tcx> {
fn normalize<T: TypeFoldable<'tcx>>(&self, t: T) -> InferOk<'tcx, T>;
}
Required Methods§
sourcefn normalize<T: TypeFoldable<'tcx>>(&self, t: T) -> InferOk<'tcx, T>
fn normalize<T: TypeFoldable<'tcx>>(&self, t: T) -> InferOk<'tcx, T>
Normalize a value using the AssocTypeNormalizer
.
This normalization should be used when the type contains inference variables or the projection may be fallible.