rust/src/libcore
Mazdak Farrokhzad b14b20c638
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.
2019-07-10 05:14:06 +02:00
..
benches Change ... to ..= where applicable 2019-06-14 12:24:38 -05:00
char fix the same typo in doctest 2019-06-30 02:46:45 +09:00
fmt add feature to docs 2019-07-09 08:30:20 +10:00
future Switch master to 1.38 2019-07-04 11:26:57 -04:00
hash Fix meta-variable binding errors in macros 2019-06-23 01:30:41 +02:00
iter Tracking issue 62544 for iter_is_partitioned 2019-07-09 15:18:33 -07:00
mem Rollup merge of #62150 - alex:mem-uninit-refactor, r=RalfJung 2019-07-05 13:53:00 +02:00
num Add documentation to float conversion methods 2019-07-08 07:34:25 +00:00
ops Remove needless lifetimes 2019-07-01 12:15:27 +02:00
prelude libcore => 2018 2019-04-18 14:47:35 +09:00
ptr Rollup merge of #62323 - Centril:clarify-read-unaligned, r=RalfJung 2019-07-05 13:53:07 +02:00
slice Auto merge of #62473 - timvermeulen:is_sorted_by_key, r=scottmcm 2019-07-08 12:03:06 +00:00
str Rollup merge of #62316 - khuey:efficient_last, r=sfackler 2019-07-04 01:38:56 +02:00
sync Remove unneeded feature attr from atomic integers doctests 2019-06-04 13:24:39 +00:00
task bump nightly to 1.37.0 2019-05-23 12:27:58 +02:00
tests Unit test Iterator::partition_in_place and is_partitioned 2019-07-09 12:39:25 -07:00
unicode Rollup merge of #60081 - pawroman:cleanup_unicode_script, r=varkor 2019-07-06 22:14:33 +02:00
alloc.rs Rollup merge of #60947 - blkerby:global_alloc_typo, r=jonas-schievink 2019-05-19 02:31:46 +02:00
any.rs libcore: deny more... 2019-04-19 01:37:12 +02:00
array.rs Use const generics for array impls, restricted to 0..=32 2019-07-07 11:31:38 -07:00
ascii.rs When possible without changing semantics, implement Iterator::last in terms of DoubleEndedIterator::next_back for types in liballoc and libcore. 2019-07-02 13:45:29 -07:00
borrow.rs be more direct about borrow requirenments 2019-04-03 11:41:24 +03:00
Cargo.toml libcore => 2018 2019-04-18 14:47:35 +09:00
cell.rs Stabilize Cell::from_mut and as_slice_of_cells 2019-06-07 16:25:41 +02:00
clone.rs libcore => 2018 2019-04-18 14:47:35 +09:00
cmp.rs libcore => 2018 2019-04-18 14:47:35 +09:00
convert.rs Rollup merge of #62186 - GuillaumeGomez:add-missing-type-links-into, r=docs 2019-07-03 09:59:18 -04:00
default.rs libs: doc comments 2019-02-10 23:57:25 +00:00
ffi.rs Switch master to 1.38 2019-07-04 11:26:57 -04:00
hint.rs std: Remove internal definitions of cfg_if! macro 2019-06-10 10:58:44 -07:00
internal_macros.rs std: Remove internal definitions of cfg_if! macro 2019-06-10 10:58:44 -07:00
intrinsics.rs Rollup merge of #62150 - alex:mem-uninit-refactor, r=RalfJung 2019-07-05 13:53:00 +02:00
iter_private.rs Remove licenses 2018-12-25 21:08:33 -07:00
lib.rs Auto merge of #62435 - scottmcm:constrained-array-impls, r=centril 2019-07-07 18:37:08 +00:00
macros.rs Apply suggestions from code review 2019-07-09 19:10:22 +03:00
marker.rs Remove needless lifetimes 2019-07-01 12:15:27 +02:00
option.rs Rollup merge of #62356 - soc:topic/contains, r=Centril 2019-07-08 02:40:53 +02:00
panic.rs libcore: deny more... 2019-04-19 01:37:12 +02:00
panicking.rs libcore: deny more... 2019-04-19 01:37:12 +02:00
pin.rs nits 2019-06-19 15:11:54 +02:00
raw.rs Fix more tests after revert of rustdoc cfg(test) feature 2019-06-09 18:15:53 +01:00
result.rs Implement Option::contains, Result::contains and Result::contains_err 2019-07-07 16:50:44 +02:00
time.rs libcore: deny more... 2019-04-19 01:37:12 +02:00
tuple.rs libcore => 2018 2019-04-18 14:47:35 +09:00
unit.rs libcore => 2018 2019-04-18 14:47:35 +09:00