pub trait ParallelTask {
type Item;
// Required methods
fn f1(&self, value: Self::Item);
fn fc(&self, values: impl ExactSizeIterator<Item = Self::Item>);
}
Expand description
A parallel task shared with threads.
Required Associated Types§
Required Methods§
Sourcefn fc(&self, values: impl ExactSizeIterator<Item = Self::Item>)
fn fc(&self, values: impl ExactSizeIterator<Item = Self::Item>)
Task to perform on a chunk of values
with known length.
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.