mozilla/rust — pull request #12149 by thomaslee (2014-02-10 10:36:01+00:00)
Title: IterBytes for IpAddr and SocketAddr

This is a fairly trivial (but IMHO handy) change to implement IterBytes for IpAddr and SocketAddr.

I originally stumbled across this because I wanted to use a SocketAddr as a HashMap key and discovered that I couldn't do it directly. Had to impl IterBytes on a new intermediate type to work around it.