rust/library/core
Yuki Okushi 13e88d6366
Rollup merge of #76635 - scottmcm:slice-as-chunks, r=LukasKalbertodt
Add [T]::as_chunks(_mut)

Allows getting the slices directly, rather than just through an iterator as in `array_chunks(_mut)`.  The constructors for those iterators are then written in terms of these methods, so the iterator constructors no longer have any `unsafe` of their own.

Unstable, of course. #74985
2020-10-27 08:44:41 +09:00
..
benches Remove redundant 'static from library crates 2020-10-18 17:25:51 +02:00
src Rollup merge of #76635 - scottmcm:slice-as-chunks, r=LukasKalbertodt 2020-10-27 08:44:41 +09:00
tests Check for exhaustion in SliceIndex for RangeInclusive 2020-10-20 17:18:08 -07:00
Cargo.toml