pub trait ToBytesBE {
// Required method
fn to_bytes_be(&self) -> Result<Vec<u8>, Error>;
// Provided method
fn write_bytes_be(&self, dst: &mut [u8]) -> Result<usize, Error> { ... }
}Expand description
Serialize a type into a sequence of bytes in big endian.