pub fn calc_serialized_size<T: ?Sized>(value: &T) -> u64where T: Serialize,
Returns the size that an object would be if serialized with a encapsulation.