about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorUlrik Sverdrup <bluss@users.noreply.github.com>2017-09-18 21:19:58 +0200
committerUlrik Sverdrup <bluss@users.noreply.github.com>2017-09-18 21:55:38 +0200
commit91318c8cab25504472deb5cd89e6a11fed60fe13 (patch)
treec5af544a26fe94956b236a4e7c56047c71fe4aac /src/rustllvm/RustWrapper.cpp
parentffd171e47f6cdd5b05e377cbcf088070720f31bc (diff)
downloadrust-91318c8cab25504472deb5cd89e6a11fed60fe13.tar.gz
rust-91318c8cab25504472deb5cd89e6a11fed60fe13.zip
core: Add DoubleEndedIterator::rfold
rfold is the reverse version of fold.

Fold allows iterators to implement a different (non-resumable) internal
iteration when it is more efficient than the external iteration
implemented through the next method. (Common examples are VecDeque and
.chain()).

Introduce rfold() so that the same customization is available for
reverse iteration. This is achieved by both adding the method, and by
having the Rev<I> adaptor connect Rev::rfold -> I::fold, Rev::fold -> I::rfold.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions