Trait grabbag::iter::TakeExactlyIterator [] [src]

pub trait TakeExactlyIterator<E>: Iterator<Item=E> + Sized {
    fn take_exactly(self, n: usize) -> TakeExactly<Self> { ... }
}

(a0, ..., ai-1, ai, ai+1, ...), i  →  (a0, ..., ai-1)

Provided Methods

fn take_exactly(self, n: usize) -> TakeExactly<Self>

Creates an iterator that yields exactly n elements from the subject iterator.

Failure

The iterator will panic if there are less than n elements in the subject iterator.

Implementors