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
//! Tuple-destructured parameter patterns are not supported.

use auto_tuple::auto_tuple;

#[auto_tuple]
trait Tr {
    fn f(&self, (a, b): (usize, usize));
}

struct X;

impl Tr for X {
    fn f(&self, (_a, _b): (usize, usize)) {}
}

fn main() {}