derive_more icon indicating copy to clipboard operation
derive_more copied to clipboard

`AsVariant` for enum

Open TylerBloom opened this issue 1 year ago • 1 comments
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).

TylerBloom avatar May 17 '24 19:05 TylerBloom

Makes a lot of sense. Feel free to contribute a PR.

JelteF avatar Sep 08 '24 09:09 JelteF