I recently decided to use dashmap since tokio recommends it
instead of implementing sharding myself.
In some cases, where I only need readable access to it, I would like to convert the dashmap to hashmap so I can do minimal changes in those methods.
More specifically, I also wanted to serialize it, and the ReadOnlyView of dashmap doesn't implement the Serialize trait either.
There doesn't seem to be a way to do it directly via the dashmap crate.
So how do I convert a DashMapto a HashMap ?