Struct combine::stream::IteratorStream[][src]

pub struct IteratorStream<I>(_);

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

Implementations

impl<I> IteratorStream<I> where
    I: Iterator
[src]

pub fn new<T>(iter: T) -> IteratorStream<I>

Notable traits for IteratorStream<I>

impl<I> Iterator for IteratorStream<I> where
    I: Iterator
type Item = I::Item;
where
    T: IntoIterator<IntoIter = I, Item = I::Item>, 
[src]

Converts an Iterator into a stream.

NOTE: This type do not implement Positioned and Clone and must be wrapped with types such as BufferedStreamRef and State to become a Stream which can be parsed

Trait Implementations

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

impl<I: Copy> Copy for IteratorStream<I>[src]

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

impl<T> DefaultPositioned for IteratorStream<T>[src]

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

type Item = I::Item

The type of the elements being iterated over.

impl<T: Clone> Resetable for IteratorStream<T>[src]

type Checkpoint = Self

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

type Item = I::Item

The type of items which is yielded from this stream.

type Range = I::Item

The type of a range of items yielded from this stream. Types which do not a have a way of yielding ranges of items should just use the Self::Item for this type. Read more

type Position = ()

Type which represents the position in a stream. Ord is required to allow parsers to determine which of two positions are further ahead. Read more

type Error = UnexpectedParse

Auto Trait Implementations

impl<I> RefUnwindSafe for IteratorStream<I> where
    I: RefUnwindSafe

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

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

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

impl<I> UnwindSafe for IteratorStream<I> where
    I: UnwindSafe

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.