derive_more icon indicating copy to clipboard operation
derive_more copied to clipboard

Forwarding version of TryInto and TryFrom

Open JelteF opened this issue 6 years ago • 0 comments

We can currently forward From, but not TryFrom. Implementing this for a single field would be fairly easy. For multiple fields this would be harder/impossible, because we would have to figure out what to do with the multiple possibly different errors that you can get. This would probably mean creating a temporary enum.

For TryInto we only support deriving it for an enum, but we don't allow forwarding it to the inner field. This should also be supported. For a struct with multiple fields this would have the same problem as TryFrom.

JelteF avatar Nov 02 '19 19:11 JelteF