pub trait IntoExactSizeConcurrentIter {
    type Item;
    type ExactConIter: ExactSizeConcurrentIter<Item = Self::Item>;

    // Required methods
    fn into_exact_con_iter(self) -> Self::ExactConIter;
    fn exact_len(&self) -> usize;
}
Expand description

A type that can be consumed and turned into an exact size concurrent iterator with into_exact_con_iter method.

Required Associated Types§

source

type Item

Type of the items that the iterator yields.

source

type ExactConIter: ExactSizeConcurrentIter<Item = Self::Item>

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

Required Methods§

source

fn into_exact_con_iter(self) -> Self::ExactConIter

Consumes this type and converts it into an exact size concurrent iterator.

source

fn exact_len(&self) -> usize

Returns the exact remaining length of the exact size concurrent iterator, before converting it into the iterator.

Implementations on Foreign Types§

source§

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

source§

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

source§

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

source§

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

Implementors§