diff options
| author | Josh Stone <jistone@redhat.com> | 2019-07-01 11:49:44 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2019-07-09 12:39:25 -0700 |
| commit | 60f1449b61a2e118916105d5fc225c005757e42e (patch) | |
| tree | b62731f26cdab0f6ed1e71444c72663295fd9683 /src/test/ui/thinlto | |
| parent | b8ec4c4d11ede0fba333a0474ed473dbe82aacf1 (diff) | |
| download | rust-60f1449b61a2e118916105d5fc225c005757e42e.tar.gz rust-60f1449b61a2e118916105d5fc225c005757e42e.zip | |
Add Iterator::partition_mut() and is_partitioned()
`partition_mut()` swaps `&mut T` items in-place to satisfy the predicate, so all `true` items precede all `false` items. This requires a `DoubleEndedIterator` so we can search from front and back for items that need swapping. `is_partitioned()` checks whether the predicate is already satisfied.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions
