Struct rayon::par_iter::enumerate::EnumerateProducer [] [src]

pub struct EnumerateProducer<P> {
    // some fields omitted
}

Trait Implementations

impl<P> Producer for EnumerateProducer<P> where P: Producer
[src]

fn cost(&mut self, items: 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. Read more

impl<P> IntoIterator for EnumerateProducer<P> where P: Producer
[src]

type Item = (usize, P::Item)

The type of the elements being iterated over.

type IntoIter = Zip<RangeFrom<usize>, P::IntoIter>

Which kind of iterator are we turning this into?

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more