#[macro_export]
macro_rules! impl_for_all_tuples {
($m:ident) => {
$m!(A, B);
$m!(A, B, C);
$m!(A, B, C, D);
$m!(A, B, C, D, E);
$m!(A, B, C, D, E, F);
$m!(A, B, C, D, E, F, G);
$m!(A, B, C, D, E, F, G, H);
};
}
// change here when stable https://github.com/rust-lang/rust/issues/83527
// https://danielkeep.github.io/tlborm/book/blk-counting.html
#[macro_export]
macro_rules! count_idents {
($($idents:ident),* $(,)*) => {
{
#[allow(dead_code, non_camel_case_types)]
enum Idents { $($idents,)* Count }
const COUNT: usize = Idents::Count as usize;
COUNT
}
};
}