pub trait ReadBytesExt: Read {
// Provided methods
fn read_u8(&mut self) -> Result<u8> { ... }
fn read_i8(&mut self) -> Result<i8> { ... }
fn read_u16<B: ByteOrder>(&mut self) -> Result<u16> { ... }
fn read_u24<B: ByteOrder>(&mut self) -> Result<u32> { ... }
fn read_u32<B: ByteOrder>(&mut self) -> Result<u32> { ... }
}Provided Methods§
fn read_u8(&mut self) -> Result<u8>
fn read_i8(&mut self) -> Result<i8>
fn read_u16<B: ByteOrder>(&mut self) -> Result<u16>
fn read_u24<B: ByteOrder>(&mut self) -> Result<u32>
fn read_u32<B: ByteOrder>(&mut self) -> Result<u32>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".