pub fn serialize<T: Encode + ?Sized>(data: &T) -> Vec<u8> ⓘ
Encode an object into a byte vector.
If the encoded object exceeds Size::MAX.
Size::MAX