typle 0.13.0

Generic tuple bounds and transformations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![allow(dead_code)]
use typle::typle;

struct MyStruct<T> {
    t: T,
}

#[typle(Tuple for 3..=3)]
impl<T: Tuple> MyStruct<T> {
    fn call_macro(_t: T) {
        stringify!(T);
        stringify!(T::LEN);
        stringify!(typle_ty!(T));
        stringify!(typle_expr!(T::LEN));
    }
}