pub fn serialized_size<T>(value: &T) -> Result<usize>where T: ?Sized + Serialize,
Same as to_bytes but only return the size of the serialized bytes.
to_bytes