pub trait IoRead {
    // Required method
    fn read(&self, buf: &mut [u8]) -> Result<usize, ReadError>;
}
Expand description

Trait for stdin

Required Methods§

source

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

Read data into buf, returning the number of bytes read.

Implementors§