rust/library/core/src/slice
Peter Jaszkowiak ffea65bf61 add new_range_api for RFC 3550
This includes a `From<legacy::RangeInclusive> for RangeInclusive` impl for convenience, instead of the `TryFrom` impl from the RFC.
Having `From` is highly convenient and the assertion is unlikely to be a problem in practice.

This includes re-exports of all existing `Range` types under `core::range`, plus the range-related traits (`RangeBounds`, `Step`, `OneSidedRange`) and the `Bound` enum.

Currently the iterators are just wrappers around the old range types,
and most other trait impls delegate to the old rage types as well.

Also includes an `.iter()` shorthand for `.clone().into_iter()`
2024-07-05 16:33:58 -06:00
..
iter Shrink some slice iterator MIR 2024-06-19 21:35:37 -07:00
sort chore: remove repeat words 2024-07-04 14:56:08 +08:00
ascii.rs Auto merge of #126273 - pietroalbini:pa-bootstrap-update, r=Mark-Simulacrum 2024-06-12 18:15:32 +00:00
cmp.rs Refer to "slice" instead of "vector" in Ord and PartialOrd trait impl of slice 2024-03-06 10:13:05 +01:00
index.rs add new_range_api for RFC 3550 2024-07-05 16:33:58 -06:00
iter.rs replace version placeholder 2024-06-11 16:52:02 +02:00
memchr.rs Use usize::repeat_u8 instead of implementing repeat_byte in memchr.rs 2023-11-26 12:27:56 +00:00
mod.rs Auto merge of #124032 - Voultapher:a-new-sort, r=thomcc 2024-06-20 20:40:43 +00:00
raw.rs Rollup merge of #123374 - mgeier:doc-slice-from-raw-parts, r=scottmcm 2024-06-12 03:57:18 -07:00
rotate.rs make ptr::rotate smaller when using optimize_for_size 2024-05-29 13:51:55 +02:00
specialize.rs Remove size_of == 1 case from fill specialization. 2021-08-09 19:25:28 +02:00