rust/library/core/tests/iter/traits
Nadrieril e8d1c2ef9c
Rollup merge of #118811 - EbbDrop:is-sorted-by-bool, r=Mark-Simulacrum
Use `bool` instead of `PartiolOrd` as return value of the comparison closure in `{slice,Iteraotr}::is_sorted_by`

Changes the function signature of the closure given to `{slice,Iteraotr}::is_sorted_by` to return a `bool` instead of a `PartiolOrd` as suggested by the libs-api team here: https://github.com/rust-lang/rust/issues/53485#issuecomment-1766411980.

This means these functions now return true if the closure returns true for all the pairs of values.
2024-01-21 06:38:35 +01:00
..
accum.rs library/core/test/iter add newlines between tests 2021-01-22 16:58:21 -05:00
double_ended.rs Use Box::new() instead of box syntax in core tests 2022-05-29 01:44:11 +02:00
iterator.rs Rollup merge of #118811 - EbbDrop:is-sorted-by-bool, r=Mark-Simulacrum 2024-01-21 06:38:35 +01:00
mod.rs library/core/tests/iter documentation and cleanup 2021-01-22 17:57:08 -05:00
step.rs library/core/tests/iter rearrange & add back missed doc comments 2021-01-22 17:57:07 -05:00