Trait grabbag::iter::stride::StrideIterator
[−]
[src]
pub trait StrideIterator<E>: Iterator<Item=E> + Sized { fn stride(self, n: usize) -> Stride<Self> { ... } }
a, n → (ai | ai → a : i ≡ mod n )
Provided Methods
fn stride(self, n: usize) -> Stride<Self>
Creates an iterator which yields every n
th element of the input iterator, including the first.