rust-lang / flate2-rs

DEFLATE, gzip, and zlib bindings for Rust
https://docs.rs/flate2
Apache License 2.0
900 stars 162 forks source link

Why do "read" types not implement "BufRead" if they use an internal BufReader? #288

Closed dralley closed 2 years ago

dralley commented 2 years ago

If the read types are using BufReaders internally, is there any practical difference between using that, and using the bufread::* types with a manually-created BufReader<T>? (apart from the aforementioned issue of what APIs are exposed).

Or in other words are the read::* types just a convenience for the developer to avoid typing BufReader::new() explicitly?