Function bcs::serialized_size

source ·
pub fn serialized_size<T>(value: &T) -> Result<usize>
where T: ?Sized + Serialize,
Expand description

Same as to_bytes but only return the size of the serialized bytes.