Skip to content

Handler introspection #2782

Answered by Luni-4
Luni-4 asked this question in Q&A
Jun 11, 2024 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

I want to share my solution which also answers to this discussion.

use core::any::type_name;
use core::future::Future;

#[rustfmt::skip]
macro_rules! all_the_tuples {
    ($name:ident) => {
        $name!([], T1);
        $name!([T1], T2);
        $name!([T1, T2], T3);
        $name!([T1, T2, T3], T4);
        $name!([T1, T2, T3, T4], T5);
        $name!([T1, T2, T3, T4, T5], T6);
        $name!([T1, T2, T3, T4, T5, T6], T7);
        $name!([T1, T2, T3, T4, T5, T6, T7], T8);
        $name!([T1, T2, T3, T4, T5, T6, T7, T8], T9);
        $name!([T1, T2, T3, T4, T5, T6, T7, T8, T9], T10);
        $name!([T1, T2, T3, T4, T5, T6, T7, T8, T9, T10], T11);
        $name!([T1, T2, T3, T4, T5, T6, T7

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Luni-4
Comment options

@jplatte
Comment options

@Luni-4
Comment options

@Luni-4
Comment options

Answer selected by Luni-4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants