rustc_middle::ty::relate::solver_relating

Trait Relate

pub trait Relate<I>:
    TypeFoldable<I>
    + PartialEq
    + Copy
where I: Interner,
{ // Required method fn relate<R>( relation: &mut R, a: Self, b: Self, ) -> Result<Self, TypeError<I>> where R: TypeRelation<I>; }

Required Methods§

fn relate<R>(relation: &mut R, a: Self, b: Self) -> Result<Self, TypeError<I>>
where R: TypeRelation<I>,

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.

Implementors§

Source§

impl<'tcx> Relate<TyCtxt<'tcx>> for &'tcx List<PolyExistentialPredicate<'tcx>>

Source§

impl<'tcx> Relate<TyCtxt<'tcx>> for ImplSubject<'tcx>

Source§

impl<'tcx> Relate<TyCtxt<'tcx>> for Expr<'tcx>

Source§

impl<'tcx> Relate<TyCtxt<'tcx>> for Const<'tcx>

Source§

impl<'tcx> Relate<TyCtxt<'tcx>> for GenericArg<'tcx>

Source§

impl<'tcx> Relate<TyCtxt<'tcx>> for Pattern<'tcx>

Source§

impl<'tcx> Relate<TyCtxt<'tcx>> for Region<'tcx>

Source§

impl<'tcx> Relate<TyCtxt<'tcx>> for Term<'tcx>

Source§

impl<'tcx> Relate<TyCtxt<'tcx>> for Ty<'tcx>

Source§

impl<'tcx> Relate<TyCtxt<'tcx>> for GenericArgsRef<'tcx>

§

impl<I> Relate<I> for AliasTerm<I>
where I: Interner,

§

impl<I> Relate<I> for AliasTy<I>
where I: Interner,

§

impl<I> Relate<I> for ExistentialProjection<I>
where I: Interner,

§

impl<I> Relate<I> for ExistentialTraitRef<I>
where I: Interner,

§

impl<I> Relate<I> for FnSig<I>
where I: Interner,

§

impl<I> Relate<I> for TraitPredicate<I>
where I: Interner,

§

impl<I> Relate<I> for TraitRef<I>
where I: Interner,

§

impl<I, T> Relate<I> for Binder<I, T>
where I: Interner, T: Relate<I>,