buf_re(a)dux

A drop-in replacement for Rust's std::io::BufReader with additional functionality.

Method names/signatures and implemented traits are unchanged from std::io::BufReader, making replacement as simple as swapping the import of the type:

notest - use std::io::BufReader; + extern crate buf_redux; + use buf_redux::BufReader;

More Direct Control

Provides methods to:

More Sensible and Customizable Buffering Behavior

Usage

Documentation

Cargo.toml: toml [dependencies] buf_redux = "0.2"

lib.rs or main.rs: rust extern crate buf_redux;

And then find-and-replace use std::io::BufReader with use buf_redux::BufReader using whatever tool you prefer.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.