pub trait ToBytes {
    fn write_le<W: Write>(&self, writer: W) -> IoResult<()>
    where
        Self: Sized
; fn to_bytes_le(&self) -> Result<Vec<u8>>
    where
        Self: Sized
, { ... } }

Required methods

Writes self into writer as little-endian bytes.

Provided methods

Returns self as a byte array in little-endian order.

Implementations on Foreign Types

Implementors