Skip to main content

str_enum_base

Macro str_enum_base 

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