pub trait WriteExt {
// Required methods
fn write_u16<B: ByteOrder>(
&mut self,
value: u16,
byte_order: B,
) -> Result<(), Error>;
fn write_u32<B: ByteOrder>(
&mut self,
value: u32,
byte_order: B,
) -> Result<(), Error>;
}Required Methods§
Sourcefn write_u16<B: ByteOrder>(
&mut self,
value: u16,
byte_order: B,
) -> Result<(), Error>
fn write_u16<B: ByteOrder>( &mut self, value: u16, byte_order: B, ) -> Result<(), Error>
Reads a u16 from the reader
fn write_u32<B: ByteOrder>( &mut self, value: u32, byte_order: B, ) -> Result<(), Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.