]> git.lizzy.rs Git - rust.git/commit
std: Stabilize Clone::clone_from
authorAlex Crichton <alex@alexcrichton.com>
Wed, 8 Apr 2015 23:38:38 +0000 (16:38 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 8 Apr 2015 23:40:03 +0000 (16:40 -0700)
commit6b32072c0c958949a4b6946bb7adb29241804454
treeee741d8bc59a2ac5ac664de825536d1cb973338a
parent926f38e588bb99aff1902fa94ab82b1db89cbbce
std: Stabilize Clone::clone_from

This method hasn't really changed since is inception, and it can often be a
nice performance win for some situations. This method also imposes no burden on
implementors or users of `Clone` as it's just a default method on the side.
src/libcore/clone.rs