Unfortunately, no. The spell description specifically notes that Mending can fix a break or tear. Corrosion, aka rust, is neither of those things, and is unaffected by Mending. Likewise, the effects of creatures such as a Black Pudding would fall under the category of corrosion and be outside the reach of Mending.