Open myarcana opened 1 year ago
Hi, this is commonly known as "string interning", if that helps you. However, slotmap
does not support lookups by arbitrary keys.
You can emulate this by using a HashMap<String, DefaultKey>
together with a SlotMap<DefaultKey, String>
though.
Is this possible? Or is there an easy way to extend slotmap or write a new type of slotmap that supports this?