multi_index_map
multi_index_map copied to clipboard
Possible enhancement? Adding HashMap::entry like methods
Is it possible to enhance the generated code, so that it also produces methods like entry
in HashMap
? This is to work around the issue as in this SO post:
https://stackoverflow.com/questions/36603867/how-to-workaround-rusts-borrow-check-of-hashmap
So if the original struct has a hashed field id
, then the macro would generate both get_by_id
and entry_by_id
.