macro_rules! impl_all { ($mac:ident $t:tt $($ts:tt)+) => { ... }; ($mac:ident $t:ident) => { ... }; ($mac:ident) => { ... }; }