diff options
| author | bors <bors@rust-lang.org> | 2020-10-06 10:17:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-10-06 10:17:48 +0000 |
| commit | 5849a7eca90582ee59b67eb09548a2aa424d7f52 (patch) | |
| tree | 43ce31b24c5252bd2aa10968ffd99403eec65b25 /library/std/src/sys/unix/process/process_unix.rs | |
| parent | 5ded394553296d56bb66e925d7001ab3271979ce (diff) | |
| parent | 1d27a508d12a7ef1688579abb3e271b7fdcd917b (diff) | |
| download | rust-5849a7eca90582ee59b67eb09548a2aa424d7f52.tar.gz rust-5849a7eca90582ee59b67eb09548a2aa424d7f52.zip | |
Auto merge of #77594 - timvermeulen:chain_advance_by, r=scottmcm
Implement advance_by, advance_back_by for iter::Chain Part of #77404. This PR does two things: - implement `Chain::advance[_back]_by` in terms of `advance[_back]_by` on `self.a` and `advance[_back]_by` on `self.b` - change `Chain::nth[_back]` to use `advance[_back]_by` on `self.a` and `nth[_back]` on `self.b` This ensures that `Chain::nth` can take advantage of an efficient `nth` implementation on the second iterator, in case it doesn't implement `advance_by`. cc `@scottmcm` in case you want to review this
Diffstat (limited to 'library/std/src/sys/unix/process/process_unix.rs')
0 files changed, 0 insertions, 0 deletions
