multi_index_map icon indicating copy to clipboard operation
multi_index_map copied to clipboard

Possible enhancement? Adding HashMap::entry like methods

Open zelenij opened this issue 1 year ago • 0 comments

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.

zelenij avatar Jul 08 '23 03:07 zelenij