pub trait Input {
// Required method
fn read(&mut self, into: &mut [u8]) -> usize;
// Provided method
fn read_byte(&mut self) -> Option<u8> { ... }
}Expand description
Trait that allows reading of data into a slice.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".