Trait genio::bufio::BufRead [] [src]

pub trait BufRead: Read {
    fn fill_buf(&mut self) -> Result<&[u8], Self::ReadError>;
    fn consume(&mut self, amount: usize);
}

A BufRead is a type of Reader which has an internal buffer, allowing it to perform extra ways of reading.

Required Methods

Fills the internal buffer of this object, returning the buffer contents. This function is a lower-level call. It needs to be paired with the consume() method to function properly.

Tells this buffer that amount bytes have been consumed from the buffer, so they should no longer be returned in calls to read.

Implementors