Trait rayon::iter::BoundedParallelIterator [] [src]

pub trait BoundedParallelIterator: ParallelIterator {
    fn upper_bound(&mut self) -> usize;
    fn drive<'c, C: Consumer<Self::Item>>(self, consumer: C) -> C::Result;
}

A trait for parallel iterators items where the precise number of items is not known, but we can at least give an upper-bound. These sorts of iterators result from filtering.

Required Methods

Internal method used to define the behavior of this parallel iterator. You should not need to call this directly.

This method causes the iterator self to start producing items and to feed them to the consumer consumer one by one. It may split the consumer before doing so to create the opportunity to produce in parallel. If a split does happen, it will inform the consumer of the index where the split should occur (unlike ParallelIterator::drive_unindexed()).

See the README for more details on the internals of parallel iterators.

Implementors