Skip to main content

ReadExt

Trait ReadExt 

Source
pub trait ReadExt: Read {
    // Provided methods
    fn read_coord(&mut self) -> Result<Coord>
       where Self: Sized { ... }
    fn read_bool8(&mut self) -> Result<bool>
       where Self: Sized { ... }
}
Expand description

Extension trait for convenient reading operations.

Provided Methods§

Source

fn read_coord(&mut self) -> Result<Coord>
where Self: Sized,

Reads a Coord value (i32).

Source

fn read_bool8(&mut self) -> Result<bool>
where Self: Sized,

Reads a boolean byte.

Implementors§

Source§

impl<R: Read> ReadExt for R