Function abstutil::serde::deserialize_btreemap
source · pub fn deserialize_btreemap<'de, D: Deserializer<'de>, K: Deserialize<'de> + Ord, V: Deserialize<'de>>(
d: D
) -> Result<BTreeMap<K, V>, D::Error>
Expand description
Deserializes a BTreeMap from a list of tuples. Necessary when the keys are structs; see https://github.com/serde-rs/json/issues/402.