Skip to main content

ParallelAlgorithm

Trait ParallelAlgorithm 

Source
pub trait ParallelAlgorithm: Algorithm {
    // Required method
    fn execute_parallel(
        &self,
        input: Self::Input,
        params: Self::Params,
    ) -> Result<Self::Output, Self::Error>;
}
Expand description

Marker trait for algorithms that can be parallelized

Required Methods§

Source

fn execute_parallel( &self, input: Self::Input, params: Self::Params, ) -> Result<Self::Output, Self::Error>

Execute in parallel using available cores

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§