bluejekyll / enum-as-inner

Macros for deriving as functions to access Enums as their inner components
Other
92 stars 11 forks source link

Change unit variants to use predicate functions #76

Closed CeleritasCelery closed 2 years ago

CeleritasCelery commented 3 years ago

Currently, unit variants return an option of the unit type. This does not offer any more information or functionality then a predicate function. The is_* functions are nicer to use and lead to simpler code.

bluejekyll commented 2 years ago

Sorry for not noticing this PR before, I've just released this as 0.4.0.