rust/library/core/src/slice
Jacob Pratt 6c8c272ad4
Rollup merge of #121148 - clarfonthey:try-range, r=dtolnay
Add slice::try_range

This adds a fallible version of the unstable `slice::range` (tracking: #76393) which is highly requested in the tracking issue.

Hoping this can slide by without an ACP (since the feature is already being tracked), but let me know otherwise.
2024-03-11 03:47:18 -04:00
..
iter Replace NonZero::<_>::new with NonZero::new. 2024-02-15 08:09:42 +01:00
ascii.rs Rollup merge of #113142 - the8472:opt-cstr-display, r=Mark-Simulacrum 2024-01-20 09:37:25 +01: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 Rollup merge of #121148 - clarfonthey:try-range, r=dtolnay 2024-03-11 03:47:18 -04:00
iter.rs rename ptr::invalid -> ptr::without_provenance 2024-02-21 20:15:52 +01: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 Rollup merge of #121148 - clarfonthey:try-range, r=dtolnay 2024-03-11 03:47:18 -04:00
raw.rs Distinguish between library and lang UB in assert_unsafe_precondition 2024-03-08 18:53:58 -05:00
rotate.rs Make ZST checks in core/alloc more readable 2022-09-22 23:12:29 -07:00
select.rs Use helper functions for min/max_idx 2023-05-24 19:33:04 +00:00
sort.rs Avoid unnecessary comparison in partition_equal 2023-10-25 19:37:14 +02:00
specialize.rs Remove size_of == 1 case from fill specialization. 2021-08-09 19:25:28 +02:00