Struct combine::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]
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 + Clone
[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
fn uncons(self) -> Result<(I::Item, Self), Error<I::Item, I::Item>>
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 Read more