I don't know about mugging you. They will try to lift your wallet, but more than that, they will try to scam you. Usually with some bogus petition (which requires a donation), or they pretend to be porters at the railway station and will slog your bags for you and then demand a tip, and then an even bigger tip.
Generally, if someone comes up to you in the streets of Rome, they want your money. They can spot the tourists a mile away. (Bigger, taller, pasty white, wearing shorts and sandals, usually kaki colouring of some sort.) Know this basic principle and you will be fine. Speak to them in a language other than Italian or English and it throws them off.