Macro dispatch_source_enum_inner

Source
macro_rules! dispatch_source_enum_inner {
    (
        {$({$source_variant:ident, $prop_name:ty, $split:ty }),*},
        $enum_type:ident,
        $enum_value:expr,
        $inner_name:ident,
        $body:expr
    ) => { ... };
}
Expand description

The invocation:

dispatch_source_enum_inner!(
    {
        {A1,B1,C1},
        {A2,B2,C2}
    },
    EnumType, enum_value, inner_ident, body
);

expands to:

match enum_value {
    EnumType::A1(inner_ident) => {
        #[allow(dead_code)]
        type PropType = B1;
        #[allow(dead_code)]
        type SplitType = C1;
        {
            body
        }
    }
    EnumType::A2(inner_ident) => {
        #[allow(dead_code)]
        type PropType = B2;
        #[allow(dead_code)]
        type SplitType = C2;
        {
            body
        }
    }
}