Trait BufRead

Source
pub trait BufRead: Read {
    // Required methods
    fn fill_buf(&mut self) -> Result<&[u8]>;
    fn consume(&mut self, amt: usize);
}
Expand description

A rough approximation of std::io::BufRead.

Required Methods§

Source

fn fill_buf(&mut self) -> Result<&[u8]>

Source

fn consume(&mut self, amt: usize)

Implementors§

Source§

impl<R> BufRead for R
where R: BufRead,