Trait rayon::par_iter::ExactParallelIterator
[−]
[src]
pub trait ExactParallelIterator: BoundedParallelIterator { fn len(&mut self) -> usize; fn collect_into(self, target: &mut Vec<Self::Item>) { ... } }
A trait for parallel iterators items where the precise number of items is known. This occurs when e.g. iterating over a vector. Knowing precisely how many items will be produced is very useful.
Required Methods
fn len(&mut self) -> usize
Produces an exact count of how many items this iterator will produce, presuming no panic occurs.
Provided Methods
fn collect_into(self, target: &mut Vec<Self::Item>)
Collects the results of the iterator into the specified vector. The vector is always truncated before execution begins. If possible, reusing the vector across calls can lead to better performance since it reuses the same backing buffer.
Implementors
impl<A, B> ExactParallelIterator for ChainIter<A, B> where A: ExactParallelIterator,
B: ExactParallelIterator<Item=A::Item>impl<M> ExactParallelIterator for Enumerate<M> where M: IndexedParallelIterator
impl<M> ExactParallelIterator for Skip<M> where M: IndexedParallelIterator
impl<M> ExactParallelIterator for Take<M> where M: IndexedParallelIterator
impl<'data, T: Sync + 'data> ExactParallelIterator for SliceIter<'data, T>
impl<'data, T: Sync + 'data> ExactParallelIterator for ChunksIter<'data, T>
impl<'data, T: Send + 'data> ExactParallelIterator for SliceIterMut<'data, T>
impl<'data, T: Send + 'data> ExactParallelIterator for ChunksMutIter<'data, T>
impl<M, MAP_OP> ExactParallelIterator for Map<M, MAP_OP> where M: ExactParallelIterator,
MAP_OP: MapOp<M::Item>impl<M: ExactParallelIterator> ExactParallelIterator for Weight<M>
impl<A, B> ExactParallelIterator for ZipIter<A, B> where A: IndexedParallelIterator,
B: IndexedParallelIteratorimpl ExactParallelIterator for RangeIter<u8>
impl ExactParallelIterator for RangeIter<u16>
impl ExactParallelIterator for RangeIter<u32>
impl ExactParallelIterator for RangeIter<usize>
impl ExactParallelIterator for RangeIter<i8>
impl ExactParallelIterator for RangeIter<i16>
impl ExactParallelIterator for RangeIter<i32>
impl ExactParallelIterator for RangeIter<isize>
impl<T: Send> ExactParallelIterator for VecIter<T>
impl<T: Send> ExactParallelIterator for OptionIter<T>