I am trying to create a StringInterner for a bidirectional mapping between String and an indexable type,
such as can be found in the Rust compile for the symbol table implementation.
The goal is to create it with as low memory overhead as possibru.
This implementation works and satisfies its unit-tests. However, I am feeling dirty for this unidiomatic code.
Is there a more idiomatic way to do this in Rust?