Trait 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]

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, Range<Idx>: Iterator<Item = Idx>,

Source§

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

Implementors§