• A
    Introduce an io::Buffer trait · 7bc092f1
    Alex Crichton 提交于
    This trait is meant to abstract whether a reader is actually implemented with an
    underlying buffer. For all readers which are implemented as such, we can
    efficiently implement things like read_char, read_line, read_until, etc. There
    are two required methods for managing the internal buffer, and otherwise
    read_line and friends can all become default methods.
    
    Closes #10334
    7bc092f1
prelude.rs 3.6 KB