about summary refs log tree commit diff
path: root/src/rt/jemalloc/test/aligned_alloc.c
diff options
context:
space:
mode:
authorblake2-ppc <blake2-ppc>2013-08-30 20:00:14 +0200
committerblake2-ppc <blake2-ppc>2013-08-30 20:06:26 +0200
commitdb22f2627d625ba9481a16e44f1cc3195e8d6ef7 (patch)
tree05798c19961773f2bc6469599d280232ee7dcf88 /src/rt/jemalloc/test/aligned_alloc.c
parente7955b2a7d880ecf2de30e5bc3a452bea0db4fd4 (diff)
downloadrust-db22f2627d625ba9481a16e44f1cc3195e8d6ef7.tar.gz
rust-db22f2627d625ba9481a16e44f1cc3195e8d6ef7.zip
std: Implement .rposition() on double-ended iterators with known size
This is a generalization of the vector .rposition() method, to all
double-ended iterators that have the ExactSizeHint trait.

This resolves the slight asymmetry around `position` and `rposition`

* position from front is `vec.iter().position()`
* position from the back was, `vec.rposition()` is now `vec.iter().rposition()`

Additionally, other indexed sequences (only `extra::ringbuf` I think),
will have the same method available once it implements ExactSizeHint.
Diffstat (limited to 'src/rt/jemalloc/test/aligned_alloc.c')
0 files changed, 0 insertions, 0 deletions