pub fn encode<T: Encode>(src: &T) -> Result<Vec<u8>>
Encode the given type T into a Vec<u8>.
T
Vec<u8>