1.0.0[][src]Struct core::iter::TakeWhile

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

An iterator that only accepts elements while predicate returns true.

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

Trait Implementations

impl<I: Clone, P: Clone> Clone for TakeWhile<I, P>[src]

impl<I: Iterator, P> Iterator for TakeWhile<I, P> where
    P: FnMut(&I::Item) -> bool, 
[src]

type Item = I::Item

The type of the elements being iterated over.

impl<I, P> FusedIterator for TakeWhile<I, P> where
    I: FusedIterator,
    P: FnMut(&I::Item) -> bool, 
1.26.0[src]

impl<I: Debug, P> Debug for TakeWhile<I, P>1.9.0[src]

Auto Trait Implementations

impl<I, P> Send for TakeWhile<I, P> where
    I: Send,
    P: Send

impl<I, P> Sync for TakeWhile<I, P> where
    I: Sync,
    P: Sync

impl<I, P> Unpin for TakeWhile<I, P> where
    I: Unpin,
    P: Unpin

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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