Expand description
#[derive(EnumVariantNameConst)]
Adds
ⓘ
pub const fn variant_name(&self) -> &'static str
to the enum, returning the precise identifier of the variant
(“A”, “B”, …) and usable in const
contexts.
Derive Macros§
- Enum
Variant Name Const - Derive macro that injects a