Skip to main content

WriteToBytes

Trait WriteToBytes 

Source
pub trait WriteToBytes {
    // Required method
    fn write_to_bytes<W: WriteBytesExt>(&self, writer: W) -> Result<()>;
}
Expand description

Protocol types that may be written to little endian bytes.

Required Methods§

Source

fn write_to_bytes<W: WriteBytesExt>(&self, writer: W) -> Result<()>

Write the command to bytes.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'a, P> WriteToBytes for &'a P
where P: WriteToBytes,

Source§

fn write_to_bytes<W: WriteBytesExt>(&self, writer: W) -> Result<()>

Implementors§