mozilla/rust — pull request #5479 by Kimundi (2013-03-21 22:17:57+00:00)
Title: Making str allocate less #2: trim and substr

This makes the `trim` and `substr` functions return a slice instead of an `~str`, and removes the unnecessary `Trimmable` trait (`StrSlice` already contains the same functionality).

Also moves the `ToStr` implementations for the three str types into the str module in anticipation of further untangling.