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.
Is it possible to enhance the generated code, so that it also produces methods like
entryinHashMap? 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 bothget_by_idandentry_by_id.