]> git.lizzy.rs Git - rust.git/commit
Add methods .move_from() and .copy_from() to vec
authorKevin Ballard <kevin@sb.org>
Tue, 18 Jun 2013 06:52:14 +0000 (23:52 -0700)
committerCorey Richardson <corey@octayn.net>
Wed, 26 Jun 2013 22:12:29 +0000 (18:12 -0400)
commit3df37326cf880425625373f3e11f74afac4dbb67
treec4f81a8bf7a85f2fba173e31ae349106adf86ee5
parent524a92c72ff05613aa5bbd0d806910222741ae2a
Add methods .move_from() and .copy_from() to vec

Add method .move_from() to MutableVector, which consumes another vector
and moves elements into the receiver.

Add new trait MutableCloneableVector with one method .copy_from(), which
clones elements from another vector into the receiver.
src/libstd/vec.rs