mozilla/rust — pull request #8733 by sfackler (2013-08-24 06:45:10+00:00)
Title: Add OwnedStr::to_bytes

My primary use case here is sending strings across the wire where the
intermediate storage is a byte array. The new method ends up avoiding a
copy.