about summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-07-10 05:14:06 +0200
committerGitHub <noreply@github.com>2019-07-10 05:14:06 +0200
commitb14b20c6388da5379df078dc2e7ea3bff582af7d (patch)
tree688ea0b2bba425df55f71ac625635bffd7598e68 /src/test/ui/thinlto
parent3c3e3756b0e9852960acda062f3c3da1ff079811 (diff)
parent7171c83ab234926d620c4869eeac90b393833ef2 (diff)
downloadrust-b14b20c6388da5379df078dc2e7ea3bff582af7d.tar.gz
rust-b14b20c6388da5379df078dc2e7ea3bff582af7d.zip
Rollup merge of #62278 - cuviper:iter-partition, r=alexcrichton
Add Iterator::partition_in_place() and is_partitioned()

`partition_in_place()` 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