pub fn deserialize<'de, D, K, V>(
    deserializer: D
) -> Result<IndexMap<K, V>, D::Error> where
    D: Deserializer<'de>,
    K: Deserialize<'de> + Ord + Clone,
    V: Deserialize<'de>, 
Expand description

Deserializes an IndexMap from an ordered sequence.

This function may be used in a field attribute for deriving Deserialize:

#[derive(Deserialize)]
struct Data {
    #[serde(deserialize_with = "indexmap_nostd::serde_seq::deserialize")]
    map: IndexMap<i32, u64>,
    // ...
}

Requires crate feature "serde".