Skip to main content

IntoParallelIterator

Trait IntoParallelIterator 

Source
pub trait IntoParallelIterator {
    type Item: Send;
    type Iter: ParallelIterator<Item = Self::Item>;

    // Required method
    fn into_par_iter(self) -> Self::Iter;
}
Expand description

Extension trait for collections to create parallel iterators.

Required Associated Types§

Source

type Item: Send

Element type yielded by the iterator.

Source

type Iter: ParallelIterator<Item = Self::Item>

Parallel iterator produced by conversion.

Required Methods§

Source

fn into_par_iter(self) -> Self::Iter

Convert self into a parallel iterator.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IntoParallelIterator for Range<usize>

Source§

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

Implementors§