You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Is it possible to enhance the generated code, so that it also produces methods like
entry
inHashMap
? 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_id
andentry_by_id
.The text was updated successfully, but these errors were encountered: