about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2018-06-04 09:02:58 +0300
committerSebastian Dröge <sebastian@centricular.com>2018-06-04 16:08:52 +0300
commit903624fb8d845afac62b1fca2d9114c04ef35fea (patch)
tree4ef613741e4d26669e7db221fd4dc688cab29884 /src/libstd/sys/unix/stack_overflow.rs
parent6eafab06cf76fd1461aabc2c6a4fc0daa516da13 (diff)
downloadrust-903624fb8d845afac62b1fca2d9114c04ef35fea.tar.gz
rust-903624fb8d845afac62b1fca2d9114c04ef35fea.zip
Add ExactChunks::remainder and ExactChunks::into_remainder
These allow to get the leftover items of the slice that are not being
iterated as part of the iterator due to not filling a complete chunk.

The mutable version consumes the slice because otherwise we would either
a) have to borrow the iterator instead of taking the lifetime of
the underlying slice, which is not what *any* of the other iterator
functions is doing, or
b) would allow returning multiple mutable references to the same data

The current behaviour of consuming the iterator is consistent with
IterMut::into_slice for the normal iterator.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions