Skip to main content

IntoParallelRefIterator

Trait IntoParallelRefIterator 

Source
pub trait IntoParallelRefIterator<'data> {
    type Item: Send + Sync + 'data;
    type Iter: ParallelIterator<Item = Self::Item>;

    // Required method
    fn par_iter(&'data self) -> Self::Iter;
}
Expand description

Extension trait for collection references to create parallel iterators.

Required Associated Types§

Source

type Item: Send + Sync + 'data

Element type yielded by the iterator.

Source

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

Parallel iterator produced by conversion.

Required Methods§

Source

fn par_iter(&'data self) -> Self::Iter

Create a parallel iterator over references to self.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'data, T> IntoParallelRefIterator<'data> for Vec<T>
where T: Send + Sync + 'data,

Source§

type Item = &'data T

Source§

type Iter = VecRefParIter<'data, T>

Source§

fn par_iter(&'data self) -> <Vec<T> as IntoParallelRefIterator<'data>>::Iter ⓘ

Implementors§