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
While developing certain proc macros using syn I found getters that return the attribute slice for a generic syn::Item to be missing. The implementation is straight forward and simple, however, daunting:
Note that a getter for this would also have the benefit of such dependent crates to not care if syn ever adds new variants. If syn provided this dependencies could simply make use of syn handling the update.
Would you accept a PR that adds these getters? If so I'd be happy to file a PR.
The text was updated successfully, but these errors were encountered:
While developing certain proc macros using
syn
I found getters that return the attribute slice for a genericsyn::Item
to be missing. The implementation is straight forward and simple, however, daunting:Example through some extension trait
Note that a getter for this would also have the benefit of such dependent crates to not care if
syn
ever adds new variants. Ifsyn
provided this dependencies could simply make use ofsyn
handling the update.Would you accept a PR that adds these getters? If so I'd be happy to file a PR.
The text was updated successfully, but these errors were encountered: