rustc_trait_selection::infer::at

Trait ToTrace

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

Required Methods§

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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: ImplSubject<'tcx>, b: ImplSubject<'tcx>, ) -> TypeTrace<'tcx>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§

Source§

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

Source§

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

Source§

impl<'tcx> ToTrace<'tcx> for Binder<TyCtxt<'tcx>, ExistentialProjection<TyCtxt<'tcx>>>

Source§

impl<'tcx> ToTrace<'tcx> for Binder<TyCtxt<'tcx>, ExistentialTraitRef<TyCtxt<'tcx>>>

Source§

impl<'tcx> ToTrace<'tcx> for Binder<TyCtxt<'tcx>, FnSig<TyCtxt<'tcx>>>

Source§

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

Source§

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