Function abstutil::serde::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>
Serializes a HashMap as a list of tuples, first sorting by the keys. This ensures the serialized form is deterministic.