Open TylerBloom opened 5 months ago
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).
IsVariant
Unwrap
Option<T>
T
Makes a lot of sense. Feel free to contribute a PR.
It would be nice to have a derive macro that is similar to
IsVariant
andUnwrap
but that turns an enum into anOption<T>
(whereT
is the data of that variant).