Struct Intersperse
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct Intersperse<I>
where
I: ParallelIterator, { /* private fields */ }
Intersperse is an iterator that inserts a particular item between each
item of the adapted iterator. This struct is created by the
intersperse() method on ParallelIterator
Trait Implementations
impl<I> Clone for Intersperse<I>
where
I: ParallelIterator + Clone,
I::Item: Clone,
fn clone(&self) -> Self
impl<I> Debug for Intersperse<I>
where
I: ParallelIterator + Debug,
I::Item: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<I> IndexedParallelIterator for Intersperse<I>
where
I: IndexedParallelIterator<Item: Clone>,
fn drive<C>(self, consumer: C) -> C::Result where C: Consumer<Self::Item>,fn len(&self) -> usizefn with_producer<CB>(self, callback: CB) -> CB::Output where CB: ProducerCallback<Self::Item>,
impl<I> ParallelIterator for Intersperse<I>
where
I: ParallelIterator<Item: Clone>,
type Item = <I as ParallelIterator>::Item;fn drive_unindexed<C>(self, consumer: C) -> C::Result where C: UnindexedConsumer<I::Item>,fn opt_len(&self) -> Option<usize>