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§
Sourcefn read_coord(&mut self) -> Result<Coord>where
Self: Sized,
fn read_coord(&mut self) -> Result<Coord>where
Self: Sized,
Reads a Coord value (i32).
Sourcefn read_bool8(&mut self) -> Result<bool>where
Self: Sized,
fn read_bool8(&mut self) -> Result<bool>where
Self: Sized,
Reads a boolean byte.