Struct nommy::Buf[][src]

pub struct Buf<I: Iterator> { /* fields omitted */ }

Buf is the standard implementation of Buffer. It stores any peeked data into a VecDeque. Any values peeked will be stored into the VecDeque, and next will either call VecDeque::pop_front or Iterator::next on the inner iter

Implementations

impl<I: Iterator> Buf<I>[src]

pub fn new(iter: impl IntoIterator<IntoIter = I>) -> Self[src]

Create a new Buf from the given IntoIterator. Also see IntoBuf

Trait Implementations

impl<I: Iterator> Buffer<<I as Iterator>::Item> for Buf<I> where
    I::Item: Clone
[src]

impl<I: Iterator> Iterator for Buf<I>[src]

type Item = I::Item

The type of the elements being iterated over.

Auto Trait Implementations

impl<I> RefUnwindSafe for Buf<I> where
    I: RefUnwindSafe,
    <I as Iterator>::Item: RefUnwindSafe
[src]

impl<I> Send for Buf<I> where
    I: Send,
    <I as Iterator>::Item: Send
[src]

impl<I> Sync for Buf<I> where
    I: Sync,
    <I as Iterator>::Item: Sync
[src]

impl<I> Unpin for Buf<I> where
    I: Unpin,
    <I as Iterator>::Item: Unpin
[src]

impl<I> UnwindSafe for Buf<I> where
    I: UnwindSafe,
    <I as Iterator>::Item: UnwindSafe
[src]

Blanket Implementations

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

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

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

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

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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, 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.