macro_rules! fn_rename {
(
@Prefix { $( $Prefix : tt )* }
@Name { $Name : ident }
@Postfix
{
fn $OldName : ident
$( $Postfix : tt )*
}
) => { ... };
(
@Prefix { $( $Prefix : tt )* }
@Name { $Name : ident }
@Postfix
{
$First : tt
$( $Postfix : tt )*
}
) => { ... };
(
@Name { $Name : ident }
@Fn { $( $Fn : tt )* }
) => { ... };
}
Expand description
Macro to rename function.