]> git.lizzy.rs Git - rust.git/commit
rollup merge of #19626: bluss/string-extend-str
authorAlex Crichton <alex@alexcrichton.com>
Tue, 9 Dec 2014 17:25:10 +0000 (09:25 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 9 Dec 2014 17:25:10 +0000 (09:25 -0800)
commit4b34f3c3adcfe4d983ef214f0fb33128c4d9144f
treece922c1847c1c304c3cbe9ed16e40bfa4423b50a
parent1cbb07507e6a29e28e27cd290d397d191ace2f47
parenta81346966d7e0480a50a2821fa5f95253342ecb0
rollup merge of #19626: bluss/string-extend-str

Strings iterate to both char and &str, so it is natural it can also be extended or collected from an iterator of &str.

Apart from the trait implementations, `Extend<char>` is updated to use the iterator size hint, and the test added tests both the char and the &str versions of Extend and FromIterator.
src/libcollections/string.rs