pub trait InferCtxtExt<'tcx> {
fn impl_similar_to(
&self,
trait_ref: PolyTraitRef<'tcx>,
obligation: &PredicateObligation<'tcx>
) -> Option<(DefId, SubstsRef<'tcx>)>;
fn describe_enclosure(&self, hir_id: HirId) -> Option<&'static str>;
fn on_unimplemented_note(
&self,
trait_ref: PolyTraitRef<'tcx>,
obligation: &PredicateObligation<'tcx>
) -> OnUnimplementedNote;
}
Required Methods
sourcefn impl_similar_to(
fn impl_similar_to(
&self,
trait_ref: PolyTraitRef<'tcx>,
obligation: &PredicateObligation<'tcx>
) -> Option<(DefId, SubstsRef<'tcx>)>
source
fn describe_enclosure(&self, hir_id: HirId) -> Option<&'static str>
sourcefn on_unimplemented_note(