layout::io

Trait Read

source
pub trait Read: IO {
    // Required methods
    fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>;
    fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Self::Error>;
}

Required Methods§

source

fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>

source

fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Self::Error>

Implementors§

source§

impl<S: Read> Read for StdIO<S>