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
Currently, the crate only creates a new types and provides conversion methods to the enum. I think it would be advantageous to convert even the struct variants to contain the struct.
nod nod; I use that pattern as well in lieu of the RFC.
I can do that (probably part of a configuration option), but it would have to wait until late next week -- there's something else I have to finish first. Feel free to open a PR as well if you like
Currently, the crate only creates a new types and provides conversion methods to the enum. I think it would be advantageous to convert even the struct variants to contain the struct.
This would allow borrows of the inner fields directly as well. An example is where we have a
&SomeEnum
and we want a&Variant1
The text was updated successfully, but these errors were encountered: