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

pub struct ReadDataSource<R: Read>(_);

Implementation of DataSource for io::Read instances.

Methods

impl<R: Read> ReadDataSource<R>
[src]

Creates a new ReadDataSource from a Read instance.

Consumes self to reveal the underlying Read instance.

Trait Implementations

impl<R: Debug + Read> Debug for ReadDataSource<R>
[src]

Formats the value using the given formatter.

impl<R: Read> DataSource for ReadDataSource<R>
[src]

The type of items this data source produces.

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