pub trait ToBytes { // Required method fn to_bytes(&self) -> Vec<u8> ⓘ; }
Trait to convert types to byte vectors.
Converts the type to a byte vector.