debug-map-sorted

crates.io

An implementation of Debug on a wrapper for [HashMap] which displays the output in sorted order.

See [SortedHashMapDebugOutput] for more info.

Example usage

```rust

use std::collections::HashMap;

use debugmapsorted::SortedOutputExt;

let data: HashMap = [(0, "zero"), (1, "one"), (2, "two")] .intoiter().collect(); asserteq!( format!("{:?}", data.sorted_debug()), "{0: \"zero\", 1: \"one\", 2: \"two\"}" ); ```