pub trait ReadSlice {
// Required method
fn read_slice(&mut self, n: usize) -> Result<&[u8], ReadSliceError>;
}Expand description
Type which supports reading a slice of bytes.
Required Methods§
fn read_slice(&mut self, n: usize) -> Result<&[u8], ReadSliceError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".