fn get_deref_impls<'a, I: Borrow<Impl>>(
cx: &'a Context<'_>,
trait_impls: &'a [I],
item: DefId,
aliased_type: Option<DefId>,
) -> Option<(&'a Impl, bool)>Expand description
Try to get the Deref trait Impl for item. If it cannot be found, it will try to do the
same with aliased_type. Returns a tuple containing the Deref Impl, and a bool set to
true if DerefMut is also implemented.