pub trait WriteExt: Write + Sized {
fn write_be<T: WriteBytes>(&mut self, n: T) -> Result<()> { ... }
fn write_le<T: WriteBytes>(&mut self, n: T) -> Result<()> { ... }
fn write_be_and_calc_bytes<T: WriteBytes>(
&mut self,
n: T,
crc: &mut CRC<u32>
) -> Result<()> { ... }
fn write_le_and_calc_bytes<T: WriteBytes>(
&mut self,
n: T,
crc: &mut CRC<u32>
) -> Result<()> { ... }
fn write_str(&mut self, s: &str) -> Result<()> { ... }
fn write_str_and_calc_bytes(
&mut self,
s: &str,
crc: &mut CRC<u32>
) -> Result<()> { ... }
}