|
|
|
|
|
by nixpulvis
2291 days ago
|
|
I find it interesting that Rust's `Read` API for `read_to_end` [1] states that it "Read[s] all bytes until EOF in this source, placing them into buf", and stops on conditions of either `Ok(0)` or various kinds of `ErrorKind`s, including `UnexpectedEof`, which should probably never be the case. [1]: https://doc.rust-lang.org/std/io/trait.Read.html#method.read... |
|