pub trait Relate<'a, 'tcx>: TypeFoldable<'tcx> {
fn relate<R: TypeRelation<'a, 'tcx>>(relation: &mut R, a: &Self, b: &Self) -> RelateResult<'tcx, Self>;
}
Required Methods
Implementors
impl<'a, 'tcx> Relate<'a, 'tcx> for mt<'tcx>
impl<'a, 'tcx> Relate<'a, 'tcx> for BareFnTy<'tcx>
impl<'a, 'tcx> Relate<'a, 'tcx> for FnSig<'tcx>
impl<'a, 'tcx> Relate<'a, 'tcx> for Unsafety
impl<'a, 'tcx> Relate<'a, 'tcx> for Abi
impl<'a, 'tcx> Relate<'a, 'tcx> for ProjectionTy<'tcx>
impl<'a, 'tcx> Relate<'a, 'tcx> for ProjectionPredicate<'tcx>
impl<'a, 'tcx> Relate<'a, 'tcx> for Vec<PolyProjectionPredicate<'tcx>>
impl<'a, 'tcx> Relate<'a, 'tcx> for ExistentialBounds<'tcx>
impl<'a, 'tcx> Relate<'a, 'tcx> for BuiltinBounds
impl<'a, 'tcx> Relate<'a, 'tcx> for TraitRef<'tcx>
impl<'a, 'tcx> Relate<'a, 'tcx> for Ty<'tcx>
impl<'a, 'tcx> Relate<'a, 'tcx> for Region
impl<'a, 'tcx, T> Relate<'a, 'tcx> for Binder<T> where T: Relate<'a, 'tcx>
impl<'a, 'tcx, T> Relate<'a, 'tcx> for Rc<T> where T: Relate<'a, 'tcx>
impl<'a, 'tcx, T> Relate<'a, 'tcx> for Box<T> where T: Relate<'a, 'tcx>
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).