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

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

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

Required methods

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

Provided methods

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

Implementations on Foreign Types

Implementors