1 2 3 4 5 6 7 8 9 10 11 12
use fixcol::{ReadFixed, WriteFixed}; #[derive(ReadFixed)] struct Foo(u64); #[derive(WriteFixed)] struct Bar(u64); #[derive(ReadFixed, WriteFixed)] struct Baz(#[fixcol(width = 20)] u64); pub fn main() {}