Function bincode::serde::serialized_size
[−]
[src]
pub fn serialized_size<T: Serialize>(value: &T) -> u64
Returns the size that an object would be if serialized using bincode.
This is used internally as part of the check for encode_into, but it can be useful for preallocating buffers if thats your style.