The above code is giving following errors, adding move in spawn also gives error that Copy in not implemented for SkipMap. What am I missing here?
value moved into closure here, in previous iteration of loop
58 | test_function(global_store);
| ------------ use occurs due to use in closure
|
= note: move occurs because `global_store` has type `SkipMap<i32, i32>`, which does not implement the `Copy` trait
It is not clear from the example, would really appreciate the inputs :)
I am implementing a global store in which i am using SkipMap.
The above code is giving following errors, adding move in spawn also gives error that Copy in not implemented for SkipMap. What am I missing here?
It is not clear from the example, would really appreciate the inputs :)