Trait orx_concurrent_iter::IntoConcurrentIter

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

    // Required methods
    fn into_con_iter(self) -> Self::ConIter;
    fn try_get_exact_len(&self) -> Option<usize>;
}
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.

source

fn try_get_exact_len(&self) -> Option<usize>

Returns Some of the exact initial length of the iterator to be created if it is known; returns None otherwise.

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 + Default> IntoConcurrentIter for Vec<T>

source§

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

Implementors§