Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking issue for [T]::rchunks, rchunks_mut, rchunks_exact, rchunks_exact_mut #55177

Closed
SimonSapin opened this issue Oct 18, 2018 · 1 comment · Fixed by #55178
Closed

Tracking issue for [T]::rchunks, rchunks_mut, rchunks_exact, rchunks_exact_mut #55177

SimonSapin opened this issue Oct 18, 2018 · 1 comment · Fixed by #55178
Labels
B-unstable Blocker: Implemented in the nightly compiler and unstable. C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@SimonSapin
Copy link
Contributor

Implemented in #54580.

These are similar to chunks, chunks_mut, chunks_exact, and chunks_exact_mut respectively, but they start from the end of the slice. They differ from calling .rev() on those other iterators (which is also possible) when the slice’s length is not a multiple of the chunk size: the remainder (either a smaller chunk or accessible through a separate method) is at the start of the slice instead of the end.

CC #47115 which tracks chunks_exact and chunks_exact_mut.

@SimonSapin SimonSapin added T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. B-unstable Blocker: Implemented in the nightly compiler and unstable. C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. labels Oct 18, 2018
sdroege added a commit to sdroege/rust that referenced this issue Oct 18, 2018
…t_mut()

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

See rust-lang#55177 for the tracking issue
@sdroege
Copy link
Contributor

sdroege commented Oct 18, 2018

Stabilization of this is in #55178 together with chunks_exact() and chunks_exact_mut()

sdroege added a commit to sdroege/rust that referenced this issue Oct 18, 2018
kennytm added a commit to kennytm/rust that referenced this issue Oct 19, 2018
…lexcrichton

Stabilize slice::chunks_exact(), chunks_exact_mut(), rchunks(), rchunks_mut(), rchunks_exact(), rchunks_exact_mut()

Fixes rust-lang#47115, rust-lang#55177
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-unstable Blocker: Implemented in the nightly compiler and unstable. C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
2 participants