Attribute Macro bilge::bitsize

source ·
#[bitsize]
Expand description

Defines the bitsize of a struct or an enum.

e.g. #[bitsize(4)] represents the item as a u4, which is UInt<u8, 4> underneath. The size of structs is currently limited to 128 bits. The size of enums is limited to 64 bits. Please open an issue if you have a usecase for bigger bitfields.