Trait rustc_infer::infer::at::ToTrace

source ·
pub trait ToTrace<'tcx>: Relate<TyCtxt<'tcx>> + Copy {
    // Required method
    fn to_trace(
        cause: &ObligationCause<'tcx>,
        a_is_expected: bool,
        a: Self,
        b: Self,
    ) -> TypeTrace<'tcx>;
}

Required Methods§

source

fn to_trace( cause: &ObligationCause<'tcx>, a_is_expected: bool, a: Self, b: Self, ) -> TypeTrace<'tcx>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'tcx> ToTrace<'tcx> for ImplSubject<'tcx>

source§

fn to_trace( cause: &ObligationCause<'tcx>, a_is_expected: bool, a: Self, b: Self, ) -> TypeTrace<'tcx>

source§

impl<'tcx> ToTrace<'tcx> for Const<'tcx>

source§

fn to_trace( cause: &ObligationCause<'tcx>, a_is_expected: bool, a: Self, b: Self, ) -> TypeTrace<'tcx>

source§

impl<'tcx> ToTrace<'tcx> for GenericArg<'tcx>

source§

fn to_trace( cause: &ObligationCause<'tcx>, a_is_expected: bool, a: Self, b: Self, ) -> TypeTrace<'tcx>

source§

impl<'tcx> ToTrace<'tcx> for Region<'tcx>

source§

fn to_trace( cause: &ObligationCause<'tcx>, a_is_expected: bool, a: Self, b: Self, ) -> TypeTrace<'tcx>

source§

impl<'tcx> ToTrace<'tcx> for Term<'tcx>

source§

fn to_trace( cause: &ObligationCause<'tcx>, a_is_expected: bool, a: Self, b: Self, ) -> TypeTrace<'tcx>

source§

impl<'tcx> ToTrace<'tcx> for Ty<'tcx>

source§

fn to_trace( cause: &ObligationCause<'tcx>, a_is_expected: bool, a: Self, b: Self, ) -> TypeTrace<'tcx>

source§

impl<'tcx> ToTrace<'tcx> for AliasTerm<'tcx>

source§

fn to_trace( cause: &ObligationCause<'tcx>, a_is_expected: bool, a: Self, b: Self, ) -> TypeTrace<'tcx>

source§

impl<'tcx> ToTrace<'tcx> for PolyExistentialProjection<'tcx>

source§

fn to_trace( cause: &ObligationCause<'tcx>, a_is_expected: bool, a: Self, b: Self, ) -> TypeTrace<'tcx>

source§

impl<'tcx> ToTrace<'tcx> for PolyExistentialTraitRef<'tcx>

source§

fn to_trace( cause: &ObligationCause<'tcx>, a_is_expected: bool, a: Self, b: Self, ) -> TypeTrace<'tcx>

source§

impl<'tcx> ToTrace<'tcx> for TraitRef<'tcx>

source§

fn to_trace( cause: &ObligationCause<'tcx>, a_is_expected: bool, a: Self, b: Self, ) -> TypeTrace<'tcx>

source§

impl<'tcx> ToTrace<'tcx> for AliasTy<'tcx>

source§

fn to_trace( cause: &ObligationCause<'tcx>, a_is_expected: bool, a: Self, b: Self, ) -> TypeTrace<'tcx>

source§

impl<'tcx> ToTrace<'tcx> for FnSig<'tcx>

source§

fn to_trace( cause: &ObligationCause<'tcx>, a_is_expected: bool, a: Self, b: Self, ) -> TypeTrace<'tcx>

source§

impl<'tcx> ToTrace<'tcx> for PolyFnSig<'tcx>

source§

fn to_trace( cause: &ObligationCause<'tcx>, a_is_expected: bool, a: Self, b: Self, ) -> TypeTrace<'tcx>

Implementors§