Function abstutil::serialize_hashmap[][src]

pub fn serialize_hashmap<S: Serializer, K: Serialize + Ord, V: Serialize>(
    map: &HashMap<K, V>,
    s: S
) -> Result<S::Ok, S::Error>
Expand description

Serializes a HashMap as a list of tuples, first sorting by the keys. This ensures the serialized form is deterministic.