pub trait ExactSizeConcurrentIter: ConcurrentIter {
    // Required method
    fn len(&self) -> usize;

    // Provided method
    fn is_empty(&self) -> bool { ... }
}
Expand description

A concurrent iterator that knows its exact length.

Required Methods§

source

fn len(&self) -> usize

Returns the exact remaining length of the concurrent iterator.

Provided Methods§

source

fn is_empty(&self) -> bool

Returns true if the iterator is empty.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, T: Send + Sync + Clone> ExactSizeConcurrentIter for ClonedConIterOfSlice<'a, T>

source§

impl<'a, T: Send + Sync> ExactSizeConcurrentIter for ConIterOfSlice<'a, T>

source§

impl<Idx> ExactSizeConcurrentIter for ConIterOfRange<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> ExactSizeConcurrentIter for ConIterOfVec<T>

source§

impl<const N: usize, T: Send + Sync + Default> ExactSizeConcurrentIter for ConIterOfArray<N, T>