pub fn serialize<T>(t: &T) -> Result<Vec<u8>, Error>where T: Serialize + ?Sized,
Serializes a T: Serialize into a Vec<u8>.
T:
Serialize
Vec<u8>
Warning: The format is incompatible with decode and subject to change between versions.
decode