Struct rustc_traits::type_op::AscribeUserTypeCx
source · struct AscribeUserTypeCx<'me, 'tcx> {
ocx: &'me ObligationCtxt<'me, 'tcx>,
param_env: ParamEnv<'tcx>,
span: Span,
}Fields§
§ocx: &'me ObligationCtxt<'me, 'tcx>§param_env: ParamEnv<'tcx>§span: SpanImplementations§
source§impl<'me, 'tcx> AscribeUserTypeCx<'me, 'tcx>
impl<'me, 'tcx> AscribeUserTypeCx<'me, 'tcx>
fn normalize<T>(&self, value: T) -> Twhere
T: TypeFoldable<'tcx>,
fn normalize_with_cause<T>(&self, value: T, cause: ObligationCause<'tcx>) -> Twhere
T: TypeFoldable<'tcx>,
fn eq<T>(&self, a: T, b: T) -> Result<(), NoSolution>where
T: ToTrace<'tcx>,
fn prove_predicate(
&self,
predicate: Predicate<'tcx>,
cause: ObligationCause<'tcx>
)
fn tcx(&self) -> TyCtxt<'tcx>
fn relate_mir_and_user_ty(
&self,
mir_ty: Ty<'tcx>,
def_id: DefId,
user_substs: UserSubsts<'tcx>
) -> 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: 24 bytes