pub trait ReadBytesExt: Read {
// Provided methods
fn read_u16<T: ByteOrder>(&mut self) -> Result<u16> { ... }
fn read_u32<T: ByteOrder>(&mut self) -> Result<u32> { ... }
fn read_u64<T: ByteOrder>(&mut self) -> Result<u64> { ... }
fn read_i16<T: ByteOrder>(&mut self) -> Result<i16> { ... }
fn read_i32<T: ByteOrder>(&mut self) -> Result<i32> { ... }
fn read_i64<T: ByteOrder>(&mut self) -> Result<i64> { ... }
fn read_f32<T: ByteOrder>(&mut self) -> Result<f32> { ... }
fn read_f64<T: ByteOrder>(&mut self) -> Result<f64> { ... }
fn read_u8(&mut self) -> Result<u8> { ... }
fn read_i8(&mut self) -> Result<i8> { ... }
}Expand description
Extension trait for reading binary data.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.