Trait combine::primitives::Stream [] [src]

pub trait Stream: Clone {
    type Item: Positioner + Clone;
    type Range: Positioner + Clone;
    fn uncons(self) -> Result<(Self::Item, Self)Error<Self::Item, Self::Range>>;
}

A stream is a sequence of items that can be extracted one by one

Associated Types

type Item: Positioner + Clone

The type of items which is yielded from this stream

type Range: Positioner + Clone

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

Required Methods

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

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

Implementors