Function serialize
Source pub fn serialize<T: Serialize + ?Sized>(t: &T) -> Result<Vec<u8>, Error>
Available on crate feature serde only.
Expand description
Serializes a T: Serialize into a Vec<u8>.
Warning: The format is incompatible with decode and subject to
change between major versions.