Trait BufRead

Source
pub trait BufRead: BufInterest {
    // Required method
    fn do_io<Io: Read>(&mut self, io: &mut Io) -> Result<()>;
}
Expand description

trait generic over different types of read buffer strategy.

Required Methods§

Source

fn do_io<Io: Read>(&mut self, io: &mut Io) -> Result<()>

read from IO and write into buffer.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§