Skip to main content

ToBytes

Trait ToBytes 

Source
pub trait ToBytes {
    // Required method
    fn to_bytes(&self) -> Vec<u8> ;
}
Expand description

Converter to byte array with endianness.

Required Methods§

Source

fn to_bytes(&self) -> Vec<u8>

Return the byte array of self.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§