pub(crate) fn for_impl(ty: &Ty) -> Option<TyFingerprint> {
        match ty {
            Ty::Apply(a_ty) => Some(TyFingerprint::Apply(a_ty.ctor)),
            _ => None,
        }
    }
/// Creates a TyFingerprint for looking up an impl. Only certain types can
/// have impls: if we have some `struct S`, we can have an `impl S`, but not
/// `impl &S`. Hence, this will return `None` for reference types and such.
Creates a TyFingerprint for looking up an impl.
Creates a TyFingerprint for looking up an impl .
pub(crate) fn for_impl(ty: &Ty) -> Option<TyFingerprint> {
        match ty {
            Ty::Apply(a_ty) => Some(TyFingerprint::Apply(a_ty.ctor)),
            _ => None,
        }
    }
pub ( crate ) fn for_impl ( ty : & Ty ) -> Option < TyFingerprint > { match ty { Ty :: Apply ( a_ty ) => Some ( TyFingerprint :: Apply ( a_ty . ctor ) ) , _ => None , } }
Creates a TyFingerprint for looking up an impl.
Creates a TyFingerprint for looking up an impl .
ty
&Ty
ty
&Ty