Trait std::old_io::BufferPreludeUnstable
[-] [+]
[src]
pub trait BufferPrelude { fn chars<'r>(&'r mut self) -> Chars<'r, Self>; fn lines<'r>(&'r mut self) -> Lines<'r, Self>; }
Extension methods for the Buffer trait which are included in the prelude.
Required Methods
fn chars<'r>(&'r mut self) -> Chars<'r, Self>
Create an iterator that reads a utf8-encoded character on each iteration until EOF.
Error
Any error other than EndOfFile
that is produced by the underlying Reader
is returned by the iterator and should be handled by the caller.
fn lines<'r>(&'r mut self) -> Lines<'r, Self>
Create an iterator that reads a line on each iteration until EOF.
Error
Any error other than EndOfFile
that is produced by the underlying Reader
is returned by the iterator and should be handled by the caller.
Implementors
impl<T: Buffer> BufferPrelude for T