]> git.lizzy.rs Git - rust.git/commit
auto merge of #7707 : thestinger/rust/double, r=cmr
authorbors <bors@rust-lang.org>
Thu, 11 Jul 2013 20:28:38 +0000 (13:28 -0700)
committerbors <bors@rust-lang.org>
Thu, 11 Jul 2013 20:28:38 +0000 (13:28 -0700)
commitf92b75ac06a86daac8d230285b605ec2ed97214b
tree876947b173e4c516d2498ad3c53b74eaacfbda6a
parent9fce8c918ab90aeb1a2932d330396884cf847e9f
parent6e75f2de9c40e4107069a68c2a7b0cc7dae2b078
auto merge of #7707 : thestinger/rust/double, r=cmr

00da76d r=cmr
6e75f2d r=cmr

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.

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.
src/libstd/vec.rs