I want to iterate through a nested hashmap and create a Vector. The following example explains exactly what i want.
The type of hashmap I have , `Hashmap<String,HashMap<&str,i64>>`
eg: ["a":["x":2,"y":3], "b":["u":6,"w":1]]
And I want a vector that consist of object X,
`Vec[X{a,["x":2,"y":3]}, X{b, ["u":6,"w":1]}]`
Is there a way to do this using `iter` and `map` ? What is the best rustic way of doing this ? I am thinking something like `hash.iter().map(|(k,v)| (k,v).collect::<Vector<>>)` but don't know how to do it. I'm pretty new to rust.