io_self_derive 0.2.0

Derive macros for the io_self crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#![allow(dead_code)]
use io_self_derive::{ReadSelf, WriteSelf};

#[derive(ReadSelf, WriteSelf)]
pub struct Foo {
    a: u8,
    b: u8,
}

#[derive(ReadSelf, WriteSelf)]
pub struct Bar(u8, u8);

fn main() {}