Trait std::old_io::BytesReaderUnstable [-] [+] [src]

pub trait BytesReader {
    fn bytes<'r>(&'r mut self) -> Bytes<'r, Self>;
}

A reader which can be converted to bytes.

Required Methods

fn bytes<'r>(&'r mut self) -> Bytes<'r, Self>

Create an iterator that reads a single byte on each iteration, until EOF.

Error

Any error other than EndOfFile that is produced by the underlying Reader is returned by the iterator and should be handled by the caller.

Implementors