Trait lazy_reader::Read [−][src]
Expand description
Trait for reading input data into a buffer.
Compared to std::io::Read
this reader supports multiple input encodings.
Associated Types
Loading content...Required methods
fn read(&mut self, buffer: &mut [Self::Item]) -> usize
[src]
Expand description
Fills the buffer and returns amount of elements read.
In case it isn’t possible to fill the whole buffer (i.e. if an error like EOF is encountered), the buffer will be filled with all the data read before encountering such an error.