Skip to main content

WriteExt

Trait WriteExt 

Source
pub trait WriteExt: Write {
    // Required method
    fn write_type<W: Writable>(
        &mut self,
        value: &W,
        endian: Endian,
    ) -> Result<()>;
}
Expand description

An extension to the io::Write trait.

Required Methods§

Source

fn write_type<W: Writable>(&mut self, value: &W, endian: Endian) -> Result<()>

Writes W with the specified endian.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Write> WriteExt for T