Struct chomp::buffer::data_source::IteratorDataSource [] [src]

pub struct IteratorDataSource<I: Iterator>(_);

Implementation of DataSource for Iterator.

Methods

impl<I: Iterator> IteratorDataSource<I>
[src]

Creates a new IteratorDataSource from an Iterator instance.

Consumes self to reveal the underlying Iterator instance.

Trait Implementations

impl<I: Debug + Iterator> Debug for IteratorDataSource<I>
[src]

Formats the value using the given formatter.

impl<I: Iterator> DataSource for IteratorDataSource<I> where
    I::Item: Copy + PartialEq
[src]

The type of items this data source produces.

Populates the supplied buffer with data, returns the number of items written. Read more