bitsandbytes 0.3.2

An owned, bit-aware binary codec: fast bit/byte field types and the unified #[bin] macro.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! `#[bin(forward_only)]` pins a `Source`-only bound, so a seek directive
//! (`restore_position`) is a compile error.
use bnb::bin;

#[bin(forward_only)]
struct Frame {
    a: bnb::u4,
    #[br(restore_position)]
    peek: u8,
    value: u16,
}

fn main() {}