-
|
Why does |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
In a derive macro you can use |
Beta Was this translation helpful? Give feedback.
-
|
Thank you very much for your reply. Actually, I just had to read the documentation further than readme. |
Beta Was this translation helpful? Give feedback.
extract_attributesis if you want to remove the matched attributes from the field, mainly this is useful for attribute macros where the extra attributes have to be removed before the token stream is output again or it will cause errors.In a derive macro you can use
parse_attributeswhich takes a non-mutable reference. You may also be able to get your example to work by usingiter_mutover the fields.