auto-tuple 0.2.0

Element-wise tuple-ization for traits: auto-generate tuple helper traits and blanket impls
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Multiple ranges in the attribute are rejected.

use auto_tuple::auto_tuple;

#[auto_tuple(2..=4, 6..=8)]
trait Tr {
    fn foo(&self);
}

struct X;

impl Tr for X {
    fn foo(&self) {}
}

fn main() {}