| Crates.io | peeky-read |
| lib.rs | peeky-read |
| version | 0.1.0 |
| created_at | 2017-06-27 10:39:18.789718+00 |
| updated_at | 2017-06-27 10:39:18.789718+00 |
| description | Peek into an io::Read and see if we're at the EOF |
| homepage | |
| repository | https://github.com/FauxFaux/peeky-read |
| max_upload_size | |
| id | 20913 |
| size | 5,006 |
A single-struct library providing PeekyRead.
PeekyRead takes ownership of an io::Read,
and provides a check_eof() -> io::Result<bool>.
This is accomplished by actually reading a single
byte from the underlying reader. The byte is stored,
and returned automatically by the next read(), so
nothing is lost, and the transition should be transparent.