Stuck with querying a hashmap

Another solution is to use the indexmap crate, and impl Equivalent<Key> for KeyRef.

1 Like