Function bincode::serialized_size
[−]
[src]
pub fn serialized_size<T: ?Sized>(value: &T) -> u64 where T: Serialize
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.