as_tuple 0.1.0

View any struct as a tuple! ✨
Documentation
1
2
3
4
5
6
7
8
9
10
11
use as_tuple::AsTuple;

#[derive(AsTuple, Debug)]
struct Nothing;

#[test]
fn unit() {
    let mut nothing = Nothing;
    let _ = nothing.as_tuple_mut();
    nothing.as_tuple();
}