about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorblake2-ppc <blake2-ppc>2013-07-18 17:38:17 +0200
committerblake2-ppc <blake2-ppc>2013-07-20 20:30:57 +0200
commit24b6901b26f0bde00706a5cbc16ffc29296ea40d (patch)
treef3eece8ac0576df1f1e57119a94a78944c2eedc6 /src/rt/rust_kernel.cpp
parentffe2623e47d9c5a5914865a9556cb1298ca00058 (diff)
downloadrust-24b6901b26f0bde00706a5cbc16ffc29296ea40d.tar.gz
rust-24b6901b26f0bde00706a5cbc16ffc29296ea40d.zip
std: Implement Clone for VecIterator and iterators using it
The theory is simple, the immutable iterators simply hold state
variables (indicies or pointers) into frozen containers. We can freely
clone these iterators, just like we can clone borrowed pointers.

VecIterator needs a manual impl to handle the lifetime struct member.
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions