Hello, I am new to rust-lang.
I am trying to write Python extension using PyO3 crate.
I wish to create some data structures in rust and store them in HashMap with the String keys. Python code should then provide String key when calling rust functions to manipulate or get information from data structures that are created and kept in rust.
Compiler refuses to initialize static variables calling HashMap::new. I found suggestion to use lazy_static which I tried but I don’t know how to have mutable static in lazy_static. All the examples show only once created and never changed static variables.