Struct rustc_traits::type_op::AscribeUserTypeCx
source · struct AscribeUserTypeCx<'me, 'tcx> {
infcx: &'me InferCtxt<'me, 'tcx>,
param_env: ParamEnv<'tcx>,
fulfill_cx: &'me mut dyn TraitEngine<'tcx>,
}
Fields
infcx: &'me InferCtxt<'me, 'tcx>
param_env: ParamEnv<'tcx>
fulfill_cx: &'me mut dyn TraitEngine<'tcx>
Implementations
sourceimpl<'me, 'tcx> AscribeUserTypeCx<'me, 'tcx>
impl<'me, 'tcx> AscribeUserTypeCx<'me, 'tcx>
fn normalize<T>(&mut self, value: T) -> Twhere
T: TypeFoldable<'tcx>,
fn relate<T>(&mut self, a: T, variance: Variance, b: T) -> Result<(), NoSolution>where
T: ToTrace<'tcx>,
fn prove_predicate(&mut self, predicate: Predicate<'tcx>, span: Option<Span>)
fn tcx(&self) -> TyCtxt<'tcx>
fn subst<T>(&self, value: T, substs: &[GenericArg<'tcx>]) -> Twhere
T: TypeFoldable<'tcx>,
fn relate_mir_and_user_ty(
&mut self,
mir_ty: Ty<'tcx>,
def_id: DefId,
user_substs: UserSubsts<'tcx>,
span: Option<Span>
) -> Result<(), NoSolution>
Auto Trait Implementations
impl<'me, 'tcx> !RefUnwindSafe for AscribeUserTypeCx<'me, 'tcx>
impl<'me, 'tcx> !Send for AscribeUserTypeCx<'me, 'tcx>
impl<'me, 'tcx> !Sync for AscribeUserTypeCx<'me, 'tcx>
impl<'me, 'tcx> Unpin for AscribeUserTypeCx<'me, 'tcx>where
'tcx: 'me,
impl<'me, 'tcx> !UnwindSafe for AscribeUserTypeCx<'me, 'tcx>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn 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: 32 bytes