Struct rustc_traits::type_op::AscribeUserTypeCx [−][src]
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
fn relate<T>(
&mut self,
a: T,
variance: Variance,
b: T
) -> Result<(), NoSolution> where
T: ToTrace<'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
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