instance_code_derive 0.1.1

Derive macro for instance_code
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use instance_code::InstanceCode;

#[test]
fn aaa() {
    #[derive(InstanceCode)]
    struct TestA {
        a: i32,
        b: i32,
    }

    let a = TestA { a: 1, b: 2 };
    let code = a.instance_code();

    println!("{}", code);
}