Trait orx_concurrent_iter::NextChunk

source ·
pub trait NextChunk<T> {
    type ChunkIter: Iterator<Item = T>;

    // Required methods
    fn values(self) -> Self::ChunkIter;
    fn begin_idx(&self) -> usize;
}
Expand description

A trait representing return types of a next_chunk call on a concurrent iterator.

Required Associated Types§

source

type ChunkIter: Iterator<Item = T>

Type of the iterator yielding elements of the chunk.

Required Methods§

source

fn values(self) -> Self::ChunkIter

Elements in the obtained chunk.

source

fn begin_idx(&self) -> usize

The index of the first element to be yielded by the values iterator.

Implementors§

source§

impl<T, Iter: ExactSizeIterator<Item = T>> NextChunk<T> for NextManyExact<T, Iter>

§

type ChunkIter = Iter

source§

impl<T, Iter: Iterator<Item = T>> NextChunk<T> for NextMany<T, Iter>

§

type ChunkIter = Iter