A couple of utilities that I have ended up wanting in various projects,
around std::io::Read
streams.
Eof
has aneof()? -> bool
to check if the stream is at the end.Pos
has anposition() -> u64
to find out where you are in a stream.ReadMany
adds aread_many
toRead
, likeread_exact
but with defined EoF behaviourIgnore
implementsRead
andWrite
andSeek
and.. and does nothing.ShortRead
is an intentionally, controllably naughtyRead
for testing.
Please read the iowrap documentation on docs.rs.
MIT or Apache 2.0
.