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