pub struct PipelineBuilder<I>where
    I: Iterator,
    I::Item: Send + 'static,
{ /* private fields */ }
Expand description

This is an intermediate data structure which allows you to configure how your pipeline should run.

Implementations

Set how many worker threads should be used to perform this work. A value of 0 is interpreted as 1.

Set how many output values to cache. The default, 0, results in synchronous output. Note that in effect each thread caches its output as it waits to send it, so in many cases you may not need additional output buffering.

Apply callable to items from the input Iterator and make them available via the output iterator.

Note that the order of items in the output Iterator may not match the order of the input iterator. (They’re returned as soon as callable produces a result.) For ordered (but slower) iteration, use ordered_map().

Like map(), but does some extra work to ensure that results in the output match the order of their inputs from the input Iterator. This requires a bit more work, and may introduce head-of-line blocking which may affect performance. If you don’t require ordered results, prefer using map().

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.