Skip to main content

WriteExt

Trait WriteExt 

Source
pub trait WriteExt: Write {
    // Provided methods
    fn write_coord(&mut self, value: Coord) -> Result<()>
       where Self: Sized { ... }
    fn write_bool8(&mut self, value: bool) -> Result<()>
       where Self: Sized { ... }
}
Expand description

Extension trait for convenient writing operations.

Provided Methods§

Source

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

Writes a Coord value (i32).

Source

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

Writes a boolean byte.

Implementors§

Source§

impl<W: Write> WriteExt for W