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

Required Methods§

source

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

Implementors§

source§

impl<T: Serialize> ToBytes for T