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 array-based chunks and windows from slices #789

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

cuviper
Copy link
Member

@cuviper cuviper commented Aug 17, 2020

pub trait ParallelSlice<T: Sync> {
    fn par_array_windows<const N: usize>(&self) -> ArrayWindows<'_, T, N>;
    fn par_array_chunks<const N: usize>(&self) -> ArrayChunks<'_, T, N>;
}
pub trait ParallelSliceMut<T: Send> {
    fn par_array_chunks_mut<const N: usize>(&mut self) -> ArrayChunksMut<'_, T, N>;
}

src/slice/mod.rs Show resolved Hide resolved
src/slice/mod.rs Outdated Show resolved Hide resolved
@cuviper cuviper force-pushed the array_chunks branch 2 times, most recently from 95c3f6c to b43b311 Compare February 25, 2021 22:15
@cuviper cuviper force-pushed the array_chunks branch 2 times, most recently from d4dd19e to 218cb66 Compare March 26, 2021 20:20
Copy link
Member

@nikomatsakis nikomatsakis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@cuviper
Copy link
Member Author

cuviper commented Apr 1, 2021

My only hesitation is to wait for std stabilization: rust-lang/rust#74985 and rust-lang/rust#75027

@pittengermd
Copy link

Any update on when this pull request might be merged? I would love to use this for video format conversion.

@cuviper
Copy link
Member Author

cuviper commented Feb 7, 2022

I'm still hoping std will settle its API, so we can be consistent in how we replicate it here.

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

Successfully merging this pull request may close these issues.

None yet

3 participants