[][src]Trait rayon::iter::internal::UnindexedProducer

pub trait UnindexedProducer: Send + Sized {
    type Item;
    fn split(self) -> (Self, Option<Self>);
fn fold_with<F>(self, folder: F) -> F
    where
        F: Folder<Self::Item>
; }

An unindexed producer that doesn't know its exact length. (or can't represent its known length in a usize)

Associated Types

type Item

Loading content...

Required methods

fn split(self) -> (Self, Option<Self>)

Split midway into a new producer if possible, otherwise return None.

fn fold_with<F>(self, folder: F) -> F where
    F: Folder<Self::Item>, 

Iterate the producer, feeding each element to folder, and stop when the folder is full (or all elements have been consumed).

Loading content...

Implementors

Loading content...