Function bitcode::serialize

source ·
pub fn serialize<T>(t: &T) -> Result<Vec<u8>, Error>
where T: Serialize + ?Sized,
Expand description

Serializes a T: Serialize into a Vec<u8>.

Warning: The format is incompatible with decode and subject to change between versions.