1 2 3 4 5 6 7 8 9
use binrw::BinRead; #[derive(BinRead)] struct Foo { #[br(try, default)] a: Option<u8>, } fn main() {}