#[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(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.