Expand description
A helper crate providing derive macros for cenum_utils.
See the parent docs for more information on use.
§Example
use cenum_utils_derive::ConstEnum;
#[derive(ConstEnum)]
#[repr(u8)]
enum Enum {
X,
Y,
Z
}Derive Macros§
- Const
Enum - Derives
EnumCountandEnumNames, as well asEnumDiscriminantsif the enum has a valid primitivereprtype.