Trait ParallelTask

Source
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§

Source

type Item

Item.

Required Methods§

Source

fn f1(&self, value: Self::Item)

Task to perform on a single value.

Source

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.

Implementors§