diff options
| author | Sebastian Dröge <sebastian@centricular.com> | 2018-06-04 09:02:58 +0300 |
|---|---|---|
| committer | Sebastian Dröge <sebastian@centricular.com> | 2018-06-04 16:08:52 +0300 |
| commit | 903624fb8d845afac62b1fca2d9114c04ef35fea (patch) | |
| tree | 4ef613741e4d26669e7db221fd4dc688cab29884 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 6eafab06cf76fd1461aabc2c6a4fc0daa516da13 (diff) | |
| download | rust-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
