fcode

Function to_bytes

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

Serialize a value into a new byte vector.