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