diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-07-11 00:23:59 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-07-11 01:31:01 -0400 |
| commit | fd5f8d90c5cc593e6aa43a978a1498f88558cc39 (patch) | |
| tree | 919f89db73b4b4436bd55827e43a759dae1ae6b3 /src/rt/rust_kernel.cpp | |
| parent | 90db8628c548537f453f33e6d253f1392d044e60 (diff) | |
| download | rust-fd5f8d90c5cc593e6aa43a978a1498f88558cc39.tar.gz rust-fd5f8d90c5cc593e6aa43a978a1498f88558cc39.zip | |
iterator: add DoubleEndedIterator concept
This implements the trait for vector iterators, replacing the reverse iterator types. The methods will stay, for implementing the future reverse Iterable traits and convenience. This can also be trivially implemented for circular buffers and other variants of arrays like strings and `SmallIntMap`/`SmallIntSet`. The `DoubleEndedIterator` trait will allow for implementing algorithms like in-place reverse on generic mutable iterators. The naming (`Range` vs. `Iterator`, `Bidirectional` vs. `DoubleEnded`) can be bikeshedded in the future.
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions
