WriteExt

Trait WriteExt 

Source
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§

Source

fn write_u16<B: ByteOrder>( &mut self, value: u16, byte_order: B, ) -> Result<(), Error>

Reads a u16 from the reader

Source

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.

Implementors§

Source§

impl<R: Write> WriteExt for R