def_custom_macro

Macro def_custom_macro 

Source
macro_rules! def_custom_macro {
    (
        $(#[$meta:meta])*
        $name:ident($custom_subcase:ident)
    ) => { ... };
}
Expand description

Allows you to change name for the inner subcase nacro by defining your own version of with_subcases!. You can add attributes and documentation to the produced outer macro.