pub fn calc_serialized_size<T: ?Sized>(value: &T) -> u64
where
    T: serde::Serialize,
{
    size::calc_serialized_data_size(value) + encapsulation::ENCAPSULATION_HEADER_SIZE
}
/// Returns the size that an object would be if serialized with a encapsulation.
Returns the size that an object would be if serialized with a encapsulation.
Returns the size that an object would be if serialized with a encapsulation .
pub fn calc_serialized_size<T: ?Sized>(value: &T) -> u64
where
    T: serde::Serialize,
{
    size::calc_serialized_data_size(value) + encapsulation::ENCAPSULATION_HEADER_SIZE
}
pub fn calc_serialized_size < T : ? Sized > ( value : & T ) -> u64 where T : serde :: Serialize , { size :: calc_serialized_data_size ( value ) + encapsulation :: ENCAPSULATION_HEADER_SIZE }
Returns the size that an object would be if serialized with a encapsulation.
Returns the size that an object would be if serialized with a encapsulation .
value
&T
value
&T