kvarn_utils::preludeTrait BufRead
1.0.0 · source pub trait BufRead: Read {
// Required methods
fn fill_buf(&mut self) -> Result<&[u8], Error>;
fn consume(&mut self, amt: usize);
// Provided methods
fn has_data_left(&mut self) -> Result<bool, Error> { ... }
fn read_until(
&mut self,
byte: u8,
buf: &mut Vec<u8>,
) -> Result<usize, Error> { ... }
fn skip_until(&mut self, byte: u8) -> Result<usize, Error> { ... }
fn read_line(&mut self, buf: &mut String) -> Result<usize, Error> { ... }
fn split(self, byte: u8) -> Split<Self> ⓘ
where Self: Sized { ... }
fn lines(self) -> Lines<Self> ⓘ
where Self: Sized { ... }
}