Struct rustc_infer::traits::Normalized
source · pub struct Normalized<'tcx, T> {
pub value: T,
pub obligations: Vec<PredicateObligation<'tcx>>,
}Fields§
§value: T§obligations: Vec<PredicateObligation<'tcx>>Implementations§
source§impl<'tcx, T> Normalized<'tcx, T>
impl<'tcx, T> Normalized<'tcx, T>
pub fn with<U>(self, value: U) -> Normalized<'tcx, U>
Trait Implementations§
source§impl<'tcx, T: Clone> Clone for Normalized<'tcx, T>
impl<'tcx, T: Clone> Clone for Normalized<'tcx, T>
source§fn clone(&self) -> Normalized<'tcx, T>
fn clone(&self) -> Normalized<'tcx, T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'tcx, T: Debug> Debug for Normalized<'tcx, T>
impl<'tcx, T: Debug> Debug for Normalized<'tcx, T>
source§impl<'tcx, T> TypeFoldable<TyCtxt<'tcx>> for Normalized<'tcx, T>where
T: TypeFoldable<TyCtxt<'tcx>>,
impl<'tcx, T> TypeFoldable<TyCtxt<'tcx>> for Normalized<'tcx, T>where T: TypeFoldable<TyCtxt<'tcx>>,
source§fn try_fold_with<__F: FallibleTypeFolder<TyCtxt<'tcx>>>(
self,
__folder: &mut __F
) -> Result<Self, __F::Error>
fn try_fold_with<__F: FallibleTypeFolder<TyCtxt<'tcx>>>( self, __folder: &mut __F ) -> Result<Self, __F::Error>
source§fn fold_with<F>(self, folder: &mut F) -> Selfwhere
F: TypeFolder<I>,
fn fold_with<F>(self, folder: &mut F) -> Selfwhere F: TypeFolder<I>,
A convenient alternative to
try_fold_with for use with infallible
folders. Do not override this method, to ensure coherence with
try_fold_with.source§impl<'tcx, T> TypeVisitable<TyCtxt<'tcx>> for Normalized<'tcx, T>where
T: TypeVisitable<TyCtxt<'tcx>>,
impl<'tcx, T> TypeVisitable<TyCtxt<'tcx>> for Normalized<'tcx, T>where T: TypeVisitable<TyCtxt<'tcx>>,
source§fn visit_with<__V: TypeVisitor<TyCtxt<'tcx>>>(
&self,
__visitor: &mut __V
) -> ControlFlow<__V::BreakTy>
fn visit_with<__V: TypeVisitor<TyCtxt<'tcx>>>( &self, __visitor: &mut __V ) -> ControlFlow<__V::BreakTy>
Auto Trait Implementations§
impl<'tcx, T> !RefUnwindSafe for Normalized<'tcx, T>
impl<'tcx, T> !Send for Normalized<'tcx, T>
impl<'tcx, T> !Sync for Normalized<'tcx, T>
impl<'tcx, T> Unpin for Normalized<'tcx, T>where T: Unpin,
impl<'tcx, T> !UnwindSafe for Normalized<'tcx, T>
Blanket Implementations§
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.