Skip to content

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

New issue

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

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

Already on GitHub? # to your account

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: An issue tracking the progress of sth. like the implementation of an RFC 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: An issue tracking the progress of sth. like the implementation of an RFC 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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
B-unstable Blocker: Implemented in the nightly compiler and unstable. C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
2 participants