Rust can protect iron in that way, bluing is a common process to create a protective rust coating. However rust is fragile and often flakes off thus allowing the process to continue. Other metals their oxide is strong enough to protect the pure inner layers.
This depends on the alloy involved as well. In general though rust is not a good iron protection.
This depends on the alloy involved as well. In general though rust is not a good iron protection.