Trait method lrs::iter::IteratorExt::consume

Removes a number of elements from the start of the iterator.

Syntax

fn consume(&mut self, n: usize) -> &mut Self

Arguments

NameDescription
n

The number of elements to remove.

Remarks

This function calls next n times.