Macro parse_enum

Source
macro_rules! parse_enum {
    (
        $ty:ty,
        $(
            ($variant:ident, $text:expr),
        )+
        |$arg:ident| $fallback:expr,
    ) => { ... };
    (
        $ty:ty,
        $(
            ($variant:ident, $text:expr),
        )+
    ) => { ... };
}