Crate typeenum

Source
Expand description

Interact with an enum type via traits.

Traits§

HasVariant
Signifies this type functions like an enum with variant T. This means you can create Self from T, and given a Self you can try to convert it into a T.

Derive Macros§

HasVariant
Dervies HasVariant for an enum. Note: it ignores variants with multiple or no contents. Currently does not support generics nor lifetimes.