par_itertools 0.2.0

Extra iterator adaptors, iterator methods, free functions, and macros that work in parallel conexts.
Documentation
pub trait ImplType {}

pub struct ImplIterator;

impl ImplType for ImplIterator {}

pub struct ImplSlice;

impl ImplType for ImplSlice {}

pub trait ParItertools<T, B: ImplType> {
    #[cfg(feature = "rayon")]
    fn combinations<const LEN: usize>(
        self,
    ) -> impl rayon::iter::IndexedParallelIterator<Item = [T; LEN]>;

    #[cfg(feature = "rayon")]
    fn combinations_with_replacement<const LEN: usize>(
        self,
    ) -> impl rayon::iter::IndexedParallelIterator<Item = [T; LEN]>;

    #[cfg(feature = "rayon")]
    fn permutations<const LEN: usize>(
        self,
    ) -> impl rayon::iter::IndexedParallelIterator<Item = [T; LEN]>;

    #[cfg(feature = "rayon")]
    fn permutations_with_replacement<const LEN: usize>(
        self,
    ) -> impl rayon::iter::IndexedParallelIterator<Item = [T; LEN]>;
}