Skip to main content

ReadBytesExt

Trait ReadBytesExt 

Source
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§

Source

fn read_u8(&mut self) -> Result<u8>

Source

fn read_i8(&mut self) -> Result<i8>

Source

fn read_u16<B: ByteOrder>(&mut self) -> Result<u16>

Source

fn read_u24<B: ByteOrder>(&mut self) -> Result<u32>

Source

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".

Implementors§

Source§

impl<R: Read + ?Sized> ReadBytesExt for R