p3_maybe_rayon::prelude

Trait SharedExt

Source
pub trait SharedExt: ParallelIterator {
    // Required method
    fn par_fold_reduce<Acc, Id, F, R>(
        self,
        identity: Id,
        fold_op: F,
        reduce_op: R,
    ) -> Acc
       where Acc: Send,
             Id: Fn() -> Acc + Sync + Send,
             F: Fn(Acc, Self::Item) -> Acc + Sync + Send,
             R: Fn(Acc, Acc) -> Acc + Sync + Send;
}

Required Methods§

Source

fn par_fold_reduce<Acc, Id, F, R>( self, identity: Id, fold_op: F, reduce_op: R, ) -> Acc
where Acc: Send, Id: Fn() -> Acc + Sync + Send, F: Fn(Acc, Self::Item) -> Acc + Sync + Send, R: Fn(Acc, Acc) -> Acc + Sync + Send,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§