Struct core::iter::Take1.0.0[][src]

#[must_use = "iterators are lazy and do nothing unless consumed"]pub struct Take<I> { /* fields omitted */ }

An iterator that only iterates over the first n iterations of iter.

This struct is created by the take method on Iterator. See its documentation for more.

Trait Implementations

impl<I: Clone> Clone for Take<I>[src]

impl<I: Debug> Debug for Take<I>[src]

impl<I> DoubleEndedIterator for Take<I> where
    I: DoubleEndedIterator + ExactSizeIterator

impl<I> ExactSizeIterator for Take<I> where
    I: ExactSizeIterator

impl<I> FusedIterator for Take<I> where
    I: FusedIterator

impl<I: InPlaceIterable> InPlaceIterable for Take<I>[src]

impl<I> Iterator for Take<I> where
    I: Iterator

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

impl<S: Iterator, I: Iterator> SourceIter for Take<I> where
    I: SourceIter<Source = S>, 

type Source = S

🔬 This is a nightly-only experimental API. (inplace_iteration)

A source stage in an iterator pipeline.

impl<I: TrustedLen> TrustedLen for Take<I>[src]

Auto Trait Implementations

impl<I> Send for Take<I> where
    I: Send

impl<I> Sync for Take<I> where
    I: Sync

impl<I> Unpin for Take<I> where
    I: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.