Expand description
该库是bitstructs的宏库。
提供了bitstruct、bitstruct_cow、bitstruct_small三个宏,用于生成BitStruct的实现。
以及bitstruct_field_enum宏,用于安全的生成BitStruct中字段的枚举类型。
详细用法请参考bitstructs的文档。
Macros§
- bitstruct_
cow - Use
Cowto implementBitStruct. 使用写时复制的BitStruct实现。 - bitstruct_
owned - Copy the byte data directly, the
BitStructimplementation with ownership. 直接复制字节数据,拥有所有权的BitStruct实现。 - bitstruct_
small - Suitable for small data structure
BitStructimplementation. 适用于小型数据结构的BitStruct实现。
Attribute Macros§
- bitstruct_
field_ enum - Used to declare the enumeration type of the field. 用于声明字段的枚举类型。
- bitstruct_
repr - Used to declare the representation of
BitStruct’s store_type or bit_numbering. 用于描述BitStruct的store_type或bit_numbering.