mozilla/rust — pull request #10466 by alexcrichton (2013-11-13 19:38:32+00:00)
Title: Move read_line/read_until to a proper location

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`).