fn receiver_for_self_ty<'db>(
interner: DbInterner<'db>,
receiver_ty: Ty<'db>,
self_ty: Ty<'db>,
method_def_id: FunctionId,
) -> Ty<'db>Expand description
Performs a type instantiation to produce the version of receiver_ty when Self = self_ty.
For example, for receiver_ty = Rc<Self> and self_ty = Foo, returns Rc<Foo>.