This crate provides three derive macros for [eosio_bytes] traits.

Examples

```rust use eosio_bytes::{Read, Write, NumBytes};

[derive(Read, Write, NumBytes, PartialEq, Debug)]

struct Thing(u8);

let thing = Thing(30);

// Number of bytes asserteq!(thing.numbytes(), 1);

// Read bytes asserteq!(thing, Thing::read(&mut [30u8], &mut 0).unwrap());

// Write bytes let mut bytes = vec![0u8; 1]; thing.write(&mut bytes, &mut 0).unwrap(); asserteq!(vec![30], bytes); ```