about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-07-20 16:58:30 -0700
committerbors <bors@rust-lang.org>2013-07-20 16:58:30 -0700
commit75b4b1b027ec5c5b72d496b7a10da418d5308c01 (patch)
treeddfc2e765cb0ca29eea8fb60196e7bff10fbb7c9 /src/rt/rust_kernel.cpp
parentbb8ca1f52cfa59e0040c2c749a1c46048fc6d48d (diff)
parentfe134b9509821e5e2fad5545cdd23c5325dfd583 (diff)
downloadrust-75b4b1b027ec5c5b72d496b7a10da418d5308c01.tar.gz
rust-75b4b1b027ec5c5b72d496b7a10da418d5308c01.zip
auto merge of #7882 : blake2-ppc/rust/iterator-clone, r=thestinger
Implement method .cycle() that repeats an iterator endlessly

Implement Clone for simple iterators (without closures), including VecIterator.

> 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.
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions