skip.rs
SHA-2567ec38e6252e7ccc3de637aa938e9fd006fb070c17079cc15c87825662ebbd8a1
Malecule∅
Evidence
1use super::plumbing::*;
2use super::*;
3use super::noop::NoopConsumer;
4use std::cmp::min;
5
6/// `Skip` is an iterator that skips over the first `n` elements.
7/// This struct is created by the [`skip()`] method on [`IndexedParallelIterator`]
8///
9/// [`skip()`]: t …
10:62… r.html
11#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
12#[derive(Debug, Clone)]
13pub struct Skip<I> {
14 base: I,
15 n: u …
25:11… base: base, n: n }
26}
27
28impl<I> ParallelIterator for Skip<I>
29 where I: IndexedParallelIterator
30{
31 type Item = I::Item;
32
33 fn drive_unindexed …