pub trait IterIntoConcurrentIter {
    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

An Iterator 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.

Implementors§

source§

impl<T: Send + Sync, Iter> IterIntoConcurrentIter for Iter
where Iter: Iterator<Item = T>,

§

type Item = T

§

type ConIter = ConIterOfIter<T, Iter>