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
add a .members() function to darling::ast::Fields<T> that works like syn::Fields::members(). this is useful for not having to match on whether its named, unnamed or a unit struct
The text was updated successfully, but these errors were encountered:
To do this, we'd need to figure out how one gets from a T to a syn::Member. T is not obliged to preserve the Ident for named fields, so at best we'd need some additional trait bound on the impl block that houses this method.
Could your use-case alternatively be achieved with something like:
add a
.members()
function todarling::ast::Fields<T>
that works likesyn::Fields::members()
. this is useful for not having to match on whether its named, unnamed or a unit structThe text was updated successfully, but these errors were encountered: