]> git.lizzy.rs Git - rust.git/commit
string: Implement FromIterator<&str> and Extend<&str> for String
authorbluss <bluss>
Sun, 7 Dec 2014 20:32:00 +0000 (21:32 +0100)
committerbluss <bluss>
Sun, 7 Dec 2014 21:45:27 +0000 (22:45 +0100)
commit5ba7c5da62bae732bf466191dbeb5f699ba44d70
tree4a9761541e8970c309b4ed4865827da525b40122
parentd7d5ccf9bb3bc63f347d8d5441092f20a3fe7088
string: Implement FromIterator<&str> and Extend<&str> for String

&str is a "particle" of a string already, see the graphemes iterator,
so it seems natural that we should be able to use it with Extend.
src/libcollections/string.rs