Trait IntoParallelStream

Source
pub trait IntoParallelStream {
    type Item: Send;
    type IntoParStream: ParallelStream<Item = Self::Item>;

    // Required method
    fn into_par_stream(self) -> Self::IntoParStream;
}
Expand description

Conversion into a ParallelStream.

Required Associated Types§

Source

type Item: Send

The type of the elements being iterated over.

Source

type IntoParStream: ParallelStream<Item = Self::Item>

Which kind of stream are we turning this into?

Required Methods§

Source

fn into_par_stream(self) -> Self::IntoParStream

Creates a parallel stream from a value.

Implementations on Foreign Types§

Source§

impl<T: Send + Sync + 'static> IntoParallelStream for Vec<T>

Implementors§