Codec

Derive Macro Codec 

Source
#[derive(Codec)]
Expand description

Derives Codec trait for the given struct.

ยงExamples

use kelk::Codec;
use kelk::storage::codec::Codec;

#[derive(Codec)]
struct Test {
    a: u32,
}

assert_eq!(Test::PACKED_LEN, 4);