rust/library/core/src/slice
Matthias Krüger d4b7915a59
Rollup merge of #140526 - Natr1x:sort-direction-documentation, r=dtolnay
docs: Specify that common sort functions sort in an ascending direction

From [forum discussion](https://users.rust-lang.org/t/is-there-a-way-to-sort-a-slice-in-specifically-ascending-or-descending-order/128998?u=natr1x) it seems like the sorting direction can be expected to always be ascending (in terms of `cmp::Ordering`).

If this is the case then it would be nice to have this stated in the documentation.
2025-05-21 22:14:57 +02:00
..
iter rename sub_ptr 😅 2025-02-23 23:11:00 +07:00
sort Move select_unpredictable to the hint module 2025-04-13 01:34:25 +01:00
ascii.rs Remove #[cfg(not(test))] gates in core 2025-03-06 13:21:59 -08:00
cmp.rs Extend the chaining logic to slices too 2025-04-12 22:10:17 -07:00
index.rs add const_eval_select macro to reduce redundancy 2024-11-05 09:26:08 +01:00
iter.rs Stabilize slice_as_chunks library feature 2025-04-10 21:07:09 -07:00
memchr.rs library: Use size_of from the prelude instead of imported 2025-03-06 20:20:38 -08:00
mod.rs Rollup merge of #140526 - Natr1x:sort-direction-documentation, r=dtolnay 2025-05-21 22:14:57 +02:00
raw.rs library: Use size_of from the prelude instead of imported 2025-03-06 20:20:38 -08:00
rotate.rs library: Use size_of from the prelude instead of imported 2025-03-06 20:20:38 -08:00
specialize.rs Remove size_of == 1 case from fill specialization. 2021-08-09 19:25:28 +02:00