Skip to main content

str_enum

Macro str_enum 

Source
macro_rules! str_enum {
    ($(#[error_type($error_ty:ident)])? $(#[derive($($derive_trait:ident),* $(,)?)])? $vis:vis enum $ty:ident { $($variant:ident = $val:literal $(($($other_valid:literal),* $(,)?))?),* $(,)? }) => { ... };
}