diff options
| author | bors <bors@rust-lang.org> | 2013-06-02 21:37:38 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-06-02 21:37:38 -0700 |
| commit | 9b60ecc30ea9f8b951a4114971e190891fa97a91 (patch) | |
| tree | 3aa30be1b0a9c189719f9210ac1f3f796786f05a /src/libstd/rt/stack.rs | |
| parent | c40baf68cb3306f1beaf1d5443bb2433043b7da7 (diff) | |
| parent | dee7c5af6991b02c86e6a84b57551fd5cc71caaf (diff) | |
| download | rust-9b60ecc30ea9f8b951a4114971e190891fa97a91.tar.gz rust-9b60ecc30ea9f8b951a4114971e190891fa97a91.zip | |
auto merge of #6908 : bjz/rust/concat-connect, r=Aatch
This adds the following traits to `prelude`:
In `std::str`, impled on `&[~[T]]` and `&[&[T]]`:
~~~rust
pub trait StrVector {
pub fn concat(&self) -> ~str;
pub fn connect(&self, sep: &str) -> ~str;
}
~~~
In `std::vec`, impled on `&[~str]` and `&[&str]`:
~~~rust
pub trait VectorVector<T> {
pub fn concat(&self) -> ~[T];
pub fn connect(&self, sep: &T) -> ~[T];
}
~~~
Diffstat (limited to 'src/libstd/rt/stack.rs')
0 files changed, 0 insertions, 0 deletions
