Crates.io | toti |
lib.rs | toti |
version | 0.1.0 |
source | src |
created_at | 2024-06-15 11:22:29.107431 |
updated_at | 2024-06-15 11:22:29.107431 |
description | Expand macro N times for multiple generics |
homepage | https://github.com/LIMPIX31/t0t1 |
repository | https://github.com/LIMPIX31/t0t1 |
max_upload_size | |
id | 1272755 |
size | 18,800 |
#[toti::expand(10)]
macro_rules! impls {
($($T:ident),+) => {
impl<$($T),+> Trait for ($($T,)+) {}
};
}
Expands into
impl<T0> Trait for (T0,) {}
impl<T0, T1> Trait for (T0, T1) {}
impl<T0, T1, T2> Trait for (T0, T1, T2) {}
impl<T0, T1, T2, T3> Trait for (T0, T1, T2, T3) {}
impl<T0, T1, T2, T3, T4> Trait for (T0, T1, T2, T3, T4) {}
impl<T0, T1, T2, T3, T4, T5> Trait for (T0, T1, T2, T3, T4, T5) {}
impl<T0, T1, T2, T3, T4, T5, T6> Trait for (T0, T1, T2, T3, T4, T5, T6) {}
impl<T0, T1, T2, T3, T4, T5, T6, T7> Trait for (T0, T1, T2, T3, T4, T5, T6, T7) {}
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> Trait for (T0, T1, T2, T3, T4, T5, T6, T7, T8) {}
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> Trait for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9) {}