pub fn deserialize<'de, K, V, D>(
deserializer: D,
) -> Result<Vec<(K, V)>, D::Error>Expand description
Deserialize to a Vec<(K, V)> as if it were a HashMap<K, V>.
This directly deserializes into the returned vec with no intermediate allocation.
In formats where dictionaries are ordered, this maintains the input data’s order.