Deserialize maps or JSON objects in [serde] to a vec of tuples rather than a HashMap for when you're only ever going to iterate over the result.
Usage:
```rust // replace this:
struct MyStuff {
data: HashMap
// with this:
struct MyStuff { #[serde(with = "tuplevecmap")] data: Vec<(KeyType, ValueType)>, } ```
The serialized format remains exactly the same, the only difference is in how the data is stored.
serde-tuple-vec-map supports no_std builds by using Vec
defined in the alloc
crate. If you're on rust 1.36.0 or newer, you can enable this with default-features=false.
Full usage example in tests/integration.rs
, documentation at https://docs.rs/serde-tuple-vec-map.