pub trait ReadExt {
// Required methods
fn read_u16<B: ByteOrder>(&mut self, byte_order: B) -> Result<u16, Error>;
fn read_u32<B: ByteOrder>(&mut self, byte_order: B) -> Result<u32, Error>;
fn read_bytes<const SIZE: usize>(&mut self) -> Result<[u8; SIZE], Error>;
}Required Methods§
Sourcefn read_u16<B: ByteOrder>(&mut self, byte_order: B) -> Result<u16, Error>
fn read_u16<B: ByteOrder>(&mut self, byte_order: B) -> Result<u16, Error>
Reads a u16 from the reader
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.