rust/library/core/src/slice
Dylan DPC ad2a80e412
Rollup merge of #83571 - a1phyr:feature_const_slice_first_last, r=dtolnay
Constantify some slice methods

Tracking issue: #83570

This PR constantifies the following functions under feature `const_slice_first_last`:
- `slice::first`
- `slice::split_first`
- `slice::last`
- `slice::split_last`

Blocking on `#![feature(const_mut_refs)]`:
- `slice::first_mut`
- `slice::split_first_mut`
- `slice::last_mut`
- `slice::split_last_mut`
2021-03-30 11:34:25 +02:00
..
iter Rename Iterator::get_unchecked 2020-09-25 19:52:01 +01:00
ascii.rs Add escape_default method to u8 and [u8] 2021-03-28 17:38:25 -04:00
cmp.rs Remove pointer comparison from slice equality 2020-12-26 06:43:51 +00:00
index.rs Convert the rest of the standard library primitives to intra-doc links 2021-02-25 20:32:49 -05:00
iter.rs Rollup merge of #82771 - emilio:iter-mut-as-slice, r=m-ou-se 2021-03-22 02:20:30 +01:00
memchr.rs Document unsafety in core::slice::memchr 2020-10-05 11:34:03 +02:00
mod.rs Rollup merge of #83571 - a1phyr:feature_const_slice_first_last, r=dtolnay 2021-03-30 11:34:25 +02:00
raw.rs Convert primitives to use intra-doc links 2021-02-25 20:31:53 -05:00
rotate.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
sort.rs Fix automatic_links warnings 2020-11-05 10:22:08 +01:00
specialize.rs generalize slice::fill specialization for byte-sized items 2021-03-18 00:25:20 +01:00