Function protobuf::rt::compute_map_size

source ยท
pub fn compute_map_size<K, V>(
    field_number: u32,
    map: &HashMap<K::Value, V::Value>,
) -> u32
where K: ProtobufType, V: ProtobufType, K::Value: Eq + Hash,
Expand description

Compute serialized size of map field and cache nested field sizes.