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

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

Wrapper around iterators which allows them to be treated as a stream. Returned by from_iter.

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> where I::Item: Positioner
[src]

type Item = I::Item

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

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