Trait orx_concurrent_iter::IntoConcurrentIter

source ·
pub trait IntoConcurrentIter {
    type Item;
    type ConIter: ConcurrentIter<Item = Self::Item>;

    // Required method
    fn into_con_iter(self) -> Self::ConIter;
}
Expand description

A type that can be consumed and turned into a concurrent iterator with into_con_iter method.

Required Associated Types§

source

type Item

Type of the items that the iterator yields.

source

type ConIter: ConcurrentIter<Item = Self::Item>

Concurrent iterator that this type will be converted into with the into_con_iter method.

Required Methods§

source

fn into_con_iter(self) -> Self::ConIter

Consumes this type and converts it into a concurrent iterator.

Implementations on Foreign Types§

source§

impl<'a, T: Send + Sync> IntoConcurrentIter for &'a [T]

§

type Item = &'a T

§

type ConIter = ConIterOfSlice<'a, T>

source§

fn into_con_iter(self) -> Self::ConIter

source§

impl<Idx> IntoConcurrentIter for Range<Idx>
where Idx: Send + Sync + Clone + Copy + From<usize> + Into<usize> + Add<Idx, Output = Idx> + Sub<Idx, Output = Idx> + Ord,

§

type Item = Idx

§

type ConIter = ConIterOfRange<Idx>

source§

fn into_con_iter(self) -> Self::ConIter

source§

impl<T: Send + Sync + Default> IntoConcurrentIter for Vec<T>

§

type Item = T

§

type ConIter = ConIterOfVec<T>

source§

fn into_con_iter(self) -> Self::ConIter

source§

impl<const N: usize, T: Send + Sync + Default> IntoConcurrentIter for [T; N]

§

type Item = T

§

type ConIter = ConIterOfArray<N, T>

source§

fn into_con_iter(self) -> Self::ConIter

Implementors§