mozilla/rust — pull request #5391 by brson (2013-03-15 01:11:04+00:00)
Title: core: Add to_bytes method to StrSlice trait

r?

I want to use this function as a method. There's probably a better way to design this but the existing `ToBytes` trait is not what I am looking for (it has a parameter to indicate the byte order).