derive_more
derive_more copied to clipboard
`AsVariant` for enum
trafficstars
It would be nice to have a derive macro that is similar to IsVariant and Unwrap but that turns an enum into an Option<T> (where T is the data of that variant).
Makes a lot of sense. Feel free to contribute a PR.