rust/src/libcore/slice
bors 121320d523 Auto merge of #54580 - sdroege:rchunks, r=SimonSapin
Add slice::rchunks(), rchunks_mut(), rchunks_exact() and rchunks_exact_mut()

These work exactly like the normal chunks iterators but start creating
chunks from the end of the slice.

----

The new iterators were motivated by a [comment](https://github.com/rust-lang/rust/issues/47115#issuecomment-424141121) by @DutchGhost.

~~~This currently includes the commits from https://github.com/rust-lang/rust/pull/54537 to not have to rename things twice or have merge conflicts. I'll force-push a new version of the branch ones those are in master.~~~

Also the stabilization tracking issue is just some number right now. I'll create the corresponding issue once this is reviewed and otherwise mergeable.

cc @DutchGhost
2018-10-18 12:47:31 +00:00
..
memchr.rs Replace usages of ptr::offset with ptr::{add,sub}. 2018-08-20 07:28:34 -04:00
mod.rs Auto merge of #54580 - sdroege:rchunks, r=SimonSapin 2018-10-18 12:47:31 +00:00
rotate.rs Revert "Auto merge of #53508 - japaric:maybe-uninit, r=RalfJung" 2018-09-29 09:50:50 +02:00
sort.rs Revert "Auto merge of #53508 - japaric:maybe-uninit, r=RalfJung" 2018-09-29 09:50:50 +02:00