pub trait ToBytesLE {
    fn to_bytes_le(&self) -> Result<Vec<u8>, Error>;

    fn write_bytes_le(&self, dst: &mut [u8]) -> Result<usize, Error> { ... }
}
Expand description

Serialize a type into a sequence of bytes in little endian.

Required methods

Serialize into a newly-allocated byte vector in little endian.

Provided methods

Serialize into an existing mutable byte slice in little endian. The usize Result contains how many bytes were written to dst.

Implementations on Foreign Types

Implementors