#[derive(BitPacked)]
{
// Attributes available to this derive:
#[bits]
}
Available on crate features
bit-packing and derive only.Expand description
Derives rustbinary::BitPack for structs and enums.
Fields with #[bits = N] use BitValue range validation. Other fields
recursively use BitPack. Enum tags use the minimum bit width and unknown
decoded tags are rejected.