#enums #pod #proc-macro #plain-old-data #variant #discriminant #pod-enum

macro no-std pod-enum-macros

An enum which is also plain-old-data - proc macros

1 unstable release

0.1.0 Apr 5, 2023

#22 in #discriminant


Used in pod-enum

MIT/Apache

12KB
212 lines

POD Enums

crates.io

This crate implements rust enums which are plain-old-data that can be taken from any value, by inserting an "Unknown" option to cover anything that isn't an actual variant's discriminant.

See the documentation for more details.


lib.rs:

A proc-macro for the pod-enum crate

Consider importing that crate instead

Dependencies

~235–680KB
~16K SLoC