rust/src/libcollections
Scott McMurray 7ec27ae63d Add ToOwned::clone_into (unstable as toowned_clone_into)
to_owned generalizes clone; this generalizes clone_from.  Use to_owned to
give it a default impl.  Customize the impl for [T], str, and T:Clone.

Use it in Cow::clone_from to reuse resources when cloning Owned into Owned.
2017-04-12 17:21:15 -07:00
..
benches Implement feature sort_unstable 2017-03-21 20:46:20 +01:00
btree Unnecessary iteration in BTreeMap::drop 2017-03-24 06:18:23 +03:00
tests Add ToOwned::clone_into (unstable as toowned_clone_into) 2017-04-12 17:21:15 -07:00
binary_heap.rs Various fixes to wording consistency in the docs 2017-03-22 17:19:52 +01:00
borrow.rs Add ToOwned::clone_into (unstable as toowned_clone_into) 2017-04-12 17:21:15 -07:00
Cargo.toml Move libXtest into libX/tests 2017-04-03 20:49:39 +02:00
enum_set.rs Various fixes to wording consistency in the docs 2017-03-22 17:19:52 +01:00
fmt.rs Rollup merge of #40241 - Sawyer47:fix-39997, r=alexcrichton 2017-03-19 20:51:06 -04:00
lib.rs Rollup merge of #41065 - jorendorff:slice-rsplit-41020, r=alexcrichton 2017-04-05 23:01:13 +00:00
linked_list.rs Fix links 2017-04-04 15:39:44 -04:00
macros.rs Panic on errors in format! or <T: Display>::to_string 2017-03-01 23:47:59 +01:00
range.rs Add 'the' before 'start'/'end' 2017-03-22 18:42:42 +01:00
slice.rs Add ToOwned::clone_into (unstable as toowned_clone_into) 2017-04-12 17:21:15 -07:00
str.rs Add ToOwned::clone_into (unstable as toowned_clone_into) 2017-04-12 17:21:15 -07:00
string.rs Rollup merge of #40456 - frewsxcv:frewsxcv-docs-function-parens, r=GuillaumeGomez 2017-03-17 08:48:51 -04:00
vec.rs Add ToOwned::clone_into (unstable as toowned_clone_into) 2017-04-12 17:21:15 -07:00
vec_deque.rs Change wording for push_front 2017-04-01 02:47:41 +02:00