Skip to main content

IntoParallelStream

Trait IntoParallelStream 

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

    // Required method
    fn into_par_stream(self) -> Self::ParStream
       where Self: Sized;

    // Provided methods
    fn par_stream_mut(&mut self) -> <&mut Self as IntoParallelStream>::ParStream
       where for<'a> &'a mut Self: IntoParallelStream { ... }
    fn par_stream(&self) -> <&Self as IntoParallelStream>::ParStream
       where for<'a> &'a Self: IntoParallelStream { ... }
}

Required Associated Types§

Required Methods§

Source

fn into_par_stream(self) -> Self::ParStream
where Self: Sized,

Provided Methods§

Source

fn par_stream_mut(&mut self) -> <&mut Self as IntoParallelStream>::ParStream
where for<'a> &'a mut Self: IntoParallelStream,

Source

fn par_stream(&self) -> <&Self as IntoParallelStream>::ParStream
where for<'a> &'a Self: IntoParallelStream,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoParallelStream for String

Source§

impl<'a, K, V, S> IntoParallelStream for &'a HashMap<K, V, S>
where K: Eq + Hash + Send + 'static + Clone, V: Send + 'static + Clone, S: BuildHasher + Default,

Source§

impl<'a, K, V> IntoParallelStream for &'a BTreeMap<K, V>
where K: Send + 'static + Clone, V: Send + 'static + Clone,

Source§

impl<'a, T, E> IntoParallelStream for &'a Result<T, E>
where T: Send + 'static + Clone,

Source§

type ParStream = IterParStream<Cloned<Iter<'a, T>>>

Source§

type Item = T

Source§

fn into_par_stream(self) -> Self::ParStream
where Self: Sized,

Source§

impl<'a, T, S> IntoParallelStream for &'a HashSet<T, S>
where T: Eq + Hash + Send + 'static + Clone, S: BuildHasher + Default,

Source§

type ParStream = IterParStream<Cloned<Iter<'a, T>>>

Source§

type Item = T

Source§

fn into_par_stream(self) -> Self::ParStream
where Self: Sized,

Source§

impl<'a, T> IntoParallelStream for &'a BTreeSet<T>
where T: Send + 'static + Clone,

Source§

type ParStream = IterParStream<Cloned<Iter<'a, T>>>

Source§

type Item = T

Source§

fn into_par_stream(self) -> Self::ParStream
where Self: Sized,

Source§

impl<'a, T> IntoParallelStream for &'a BinaryHeap<T>
where T: Send + 'static + Ord + Clone,

Source§

type ParStream = IterParStream<Cloned<Iter<'a, T>>>

Source§

type Item = T

Source§

fn into_par_stream(self) -> Self::ParStream
where Self: Sized,

Source§

impl<'a, T> IntoParallelStream for &'a LinkedList<T>
where T: Send + 'static + Clone,

Source§

type ParStream = IterParStream<Cloned<Iter<'a, T>>>

Source§

type Item = T

Source§

fn into_par_stream(self) -> Self::ParStream
where Self: Sized,

Source§

impl<'a, T> IntoParallelStream for &'a Option<T>
where T: Send + 'static + Clone,

Source§

type ParStream = IterParStream<Cloned<Iter<'a, T>>>

Source§

type Item = T

Source§

fn into_par_stream(self) -> Self::ParStream
where Self: Sized,

Source§

impl<'a, T> IntoParallelStream for &'a Vec<T>
where T: Send + 'static + Clone,

Source§

type ParStream = IterParStream<Cloned<Iter<'a, T>>>

Source§

type Item = T

Source§

fn into_par_stream(self) -> Self::ParStream
where Self: Sized,

Source§

impl<'a, T> IntoParallelStream for &'a VecDeque<T>
where T: Send + 'static + Clone,

Source§

type ParStream = IterParStream<Cloned<Iter<'a, T>>>

Source§

type Item = T

Source§

fn into_par_stream(self) -> Self::ParStream
where Self: Sized,

Source§

impl<'a, T> IntoParallelStream for &'a [T]
where T: Send + 'static + Clone,

Source§

type ParStream = IterParStream<Cloned<Iter<'a, T>>>

Source§

type Item = T

Source§

fn into_par_stream(self) -> Self::ParStream
where Self: Sized,

Source§

impl<'a> IntoParallelStream for &'a String

Source§

impl<Idx> IntoParallelStream for Range<Idx>
where Self: Iterator, <Self as Iterator>::Item: Send + 'static,

Source§

type ParStream = IterParStream<Range<Idx>>

Source§

type Item = <Range<Idx> as Iterator>::Item

Source§

fn into_par_stream(self) -> Self::ParStream
where Self: Sized,

Source§

impl<Idx> IntoParallelStream for RangeFrom<Idx>
where Self: Iterator, <Self as Iterator>::Item: Send + 'static,

Source§

impl<Idx> IntoParallelStream for RangeInclusive<Idx>
where Self: Iterator, <Self as Iterator>::Item: Send + 'static,

Source§

impl<K, V, S> IntoParallelStream for HashMap<K, V, S>
where K: Eq + Hash + Send + 'static, V: Send + 'static, S: BuildHasher + Default,

Source§

impl<K, V> IntoParallelStream for BTreeMap<K, V>
where K: Send + 'static, V: Send + 'static,

Source§

impl<T, E> IntoParallelStream for Result<T, E>
where T: Send + 'static,

Source§

impl<T, S> IntoParallelStream for HashSet<T, S>
where T: Eq + Hash + Send + 'static, S: BuildHasher + Default,

Source§

impl<T> IntoParallelStream for BTreeSet<T>
where T: Send + 'static,

Source§

impl<T> IntoParallelStream for BinaryHeap<T>
where T: Send + 'static + Ord,

Source§

impl<T> IntoParallelStream for LinkedList<T>
where T: Send + 'static,

Source§

impl<T> IntoParallelStream for Option<T>
where T: Send + 'static,

Source§

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

Source§

impl<T> IntoParallelStream for VecDeque<T>
where T: Send + 'static,

Source§

impl<T> IntoParallelStream for [T]
where T: Send + 'static,

Implementors§