bincode

Function serialize

Source
pub fn serialize<T>(value: &T) -> Result<Vec<u8>>
where T: Serialize + ?Sized,
Expand description

Serializes a serializable object into a Vec of bytes using the default configuration.

Warning: the default configuration used by this function is not the same as that used by the DefaultOptions struct. See the config module for more details