Function bincode::rustc_serialize::encoded_size
[−]
[src]
pub fn encoded_size<T: Encodable>(t: &T) -> u64
Returns the size that an object would be if encoded 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.