bincode::byteorder

Trait WriteBytesExt

Source
pub trait WriteBytesExt: Write {
    // Provided methods
    fn write_u8(&mut self, n: u8) -> Result<()> { ... }
    fn write_i8(&mut self, n: i8) -> Result<()> { ... }
    fn write_u16<T: ByteOrder>(&mut self, n: u16) -> Result<()> { ... }
    fn write_i16<T: ByteOrder>(&mut self, n: i16) -> Result<()> { ... }
    fn write_u32<T: ByteOrder>(&mut self, n: u32) -> Result<()> { ... }
    fn write_i32<T: ByteOrder>(&mut self, n: i32) -> Result<()> { ... }
    fn write_u64<T: ByteOrder>(&mut self, n: u64) -> Result<()> { ... }
    fn write_i64<T: ByteOrder>(&mut self, n: i64) -> Result<()> { ... }
    fn write_f32<T: ByteOrder>(&mut self, n: f32) -> Result<()> { ... }
    fn write_f64<T: ByteOrder>(&mut self, n: f64) -> Result<()> { ... }
    fn write_u128<T: ByteOrder>(&mut self, n: u128) -> Result<()> { ... }
    fn write_i128<T: ByteOrder>(&mut self, n: i128) -> Result<()> { ... }
}

Provided Methods§

Source

fn write_u8(&mut self, n: u8) -> Result<()>

Source

fn write_i8(&mut self, n: i8) -> Result<()>

Source

fn write_u16<T: ByteOrder>(&mut self, n: u16) -> Result<()>

Source

fn write_i16<T: ByteOrder>(&mut self, n: i16) -> Result<()>

Source

fn write_u32<T: ByteOrder>(&mut self, n: u32) -> Result<()>

Source

fn write_i32<T: ByteOrder>(&mut self, n: i32) -> Result<()>

Source

fn write_u64<T: ByteOrder>(&mut self, n: u64) -> Result<()>

Source

fn write_i64<T: ByteOrder>(&mut self, n: i64) -> Result<()>

Source

fn write_f32<T: ByteOrder>(&mut self, n: f32) -> Result<()>

Source

fn write_f64<T: ByteOrder>(&mut self, n: f64) -> Result<()>

Source

fn write_u128<T: ByteOrder>(&mut self, n: u128) -> Result<()>

Source

fn write_i128<T: ByteOrder>(&mut self, n: i128) -> Result<()>

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§