Struct parser_combinators::primitives::IteratorStream [] [src]

pub struct IteratorStream<I>(_) where I: Iterator + Clone;

Trait Implementations

impl<I: Debug> Debug for IteratorStream<I> where I: Iterator + Clone
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<I: Clone> Clone for IteratorStream<I> where I: Iterator + Clone
[src]

fn clone(&self) -> IteratorStream<I>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<I: Iterator + Clone> Stream for IteratorStream<I>
[src]

type Item = I::Item

fn uncons(self) -> Result<(I::Item, Self)()>

Takes a stream and removes its first item, yielding the item and the rest of the elements Returns Err when no more elements could be retrieved Read more