Small rifle and small pistol primers are the same, dimensionally.

For high pressure pistol ammo they work fine. But for low pressure ammo they dont work well. The primer cups are harder and dont seal the primer pocket completely. You can get gas leakage and end up with flame pitting on your breechface.

I only sub rifle primers in top end 9x19 and 40 ammo.

Large rifle primers and large pistol primers dont interchange.