Closed bugadani closed 4 years ago
Some possible approaches (just to have them documented and avoid duplication of work):
Fortunately, in Rust it is possible to turn on and off library features. I'm considering giving each Slots instance a unique ID that is inherited by its keys. In release builds this protection can be turned off (probably done by default), or re-enabled through configuration.
Not an elegant solution, but simple enough to implement.
See this test case provided by @chrysn