pub trait Input { // Required method fn read(&mut self, into: &mut [u8]) -> usize; // Provided method fn read_byte(&mut self) -> Option<u8> { ... } }
Trait that allows reading of data into a slice.
Read into the provided input slice. Returns the number of bytes read.
Read a single byte from the input.
std