pub fn to_bytes<T: ?Sized + Serialize>( value: &T, buf: &mut [u8] ) -> Result<usize>
Serializes value to buf and returns the amount of serialized bytes
value
buf