5 releases

0.2.1 Sep 19, 2022
0.2.0 Jan 20, 2019
0.1.2 Feb 18, 2018
0.1.1 Nov 15, 2017
0.1.0 Nov 15, 2017

#622 in Data structures

Download history 2956/week @ 2024-03-14 2226/week @ 2024-03-21 1707/week @ 2024-03-28 2721/week @ 2024-04-04 2742/week @ 2024-04-11 2207/week @ 2024-04-18 1083/week @ 2024-04-25 1427/week @ 2024-05-02 1505/week @ 2024-05-09 1263/week @ 2024-05-16 977/week @ 2024-05-23 1162/week @ 2024-05-30 1660/week @ 2024-06-06 1351/week @ 2024-06-13 1359/week @ 2024-06-20 844/week @ 2024-06-27

5,570 downloads per month
Used in 31 crates (5 directly)

MIT/Apache

26KB
586 lines

iowrap

CI

A couple of utilities that I have ended up wanting in various projects, around std::io::Read streams.

  • Eof has an eof()? -> bool to check if the stream is at the end.
  • Pos has an position() -> u64 to find out where you are in a stream.
  • ReadMany adds a read_many to Read, like read_exact but with defined EoF behaviour
  • Ignore implements Read and Write and Seek and.. and does nothing.
  • ShortRead is an intentionally, controllably naughty Read for testing.

Documentation

Please read the iowrap documentation on docs.rs.

License

MIT or Apache 2.0.


lib.rs:

Some utility methods for wrapping std::io::Read and std::io::Write.

Dependencies

~170–315KB