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
EnumCount
andEnumNames
, as well asEnumDiscriminants
if the enum has a valid primitiverepr
type.