jam-codec 0.1.0

Lightweight, efficient, binary codec for JAM
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[derive(::jam_codec::Decode, ::jam_codec::Encode)]
#[codec(crate = ::jam_codec)]
enum T {
	A = 3,
	#[codec(index = 3)]
	B,
}

#[derive(::jam_codec::Decode, ::jam_codec::Encode)]
#[codec(crate = ::jam_codec)]
enum T1 {
	A,
	#[codec(index = 0)]
	B,
}

fn main() {}