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

Add par_rchunks* to ParallelSlice[Mut] #734

Closed
cuviper opened this issue Mar 12, 2020 · 0 comments · Fixed by #863
Closed

Add par_rchunks* to ParallelSlice[Mut] #734

cuviper opened this issue Mar 12, 2020 · 0 comments · Fixed by #863

Comments

@cuviper
Copy link
Member

cuviper commented Mar 12, 2020

[T] has these methods with no parallel in Rayon yet:

  • pub fn rchunks(&self, chunk_size: usize) -> RChunks<T>
  • pub fn rchunks_mut(&mut self, chunk_size: usize) -> RChunksMut<T>
  • pub fn rchunks_exact(&self, chunk_size: usize) -> RChunksExact<T>
  • pub fn rchunks_exact_mut(&mut self, chunk_size: usize) -> RChunksExactMut<T>

They're mostly like chunks(size).rev(), except they are aligned to the end of the slice, so any remainder/shortcoming is at the beginning of the slice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant