Trait rayon::par_iter::internal::Producer [] [src]

pub trait Producer: IntoIterator + Send {
    fn cost(&mut self, len: usize) -> f64;
    fn split_at(self, index: usize) -> (Self, Self);
}

A producer which will produce a fixed number of items N. This is not queryable through the API; the consumer is expected to track it.

Required Methods

fn cost(&mut self, len: usize) -> f64

Cost to produce len items, where len must be N.

fn split_at(self, index: usize) -> (Self, Self)

Split into two producers; one produces items 0..index, the other index..N. Index must be less than N.

Implementors