]> git.lizzy.rs Git - rust.git/commit
auto merge of #10466 : alexcrichton/rust/issue-10334, r=cmr
authorbors <bors@rust-lang.org>
Sun, 17 Nov 2013 09:21:36 +0000 (01:21 -0800)
committerbors <bors@rust-lang.org>
Sun, 17 Nov 2013 09:21:36 +0000 (01:21 -0800)
commit66df86ae98364bd6bc29463dc52d5c9c7d2fdd7a
tree323febd79e7a86a12ccd1dd75358b012cbecd76b
parent0a577f384e22b51bc7299ba9521a6054b3a1ddfc
parent01343d3d2987dfea6a3982aba3735a95c9a0c51c
auto merge of #10466 : alexcrichton/rust/issue-10334, r=cmr

These commits create a `Buffer` trait in the `io` module which represents an I/O reader which is internally buffered. This abstraction is used to reasonably implement `read_line` and `read_until` along with at least an ok implementation of `read_char` (although I certainly haven't benchmarked `read_char`).
src/libstd/io/mem.rs
src/libstd/io/mod.rs