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
I don't think your exact suggestion is possible without specialization, but if you can make it work I'd be happy to review a PR for it.
A much simpler approach would be adding thin FromMetaItem impls for the types you care about, wrapping their FromStr impls. Those would go in [core/src/from_meta_item.rs].
With those in place, the existing blanket impl FromMetaItem<T> for Result<T> would cover the case you're describing.
I'd propose to allow e.g.
Result<i32, darling::Error>
in the struct.I'll submit a patch if you think this is a useful idea.
The text was updated successfully, but these errors were encountered: