Skip to main content

Crate bitstructs_macro

Crate bitstructs_macro 

Source
Expand description

该库是bitstructs的宏库。

提供了bitstructbitstruct_cowbitstruct_small三个宏,用于生成BitStruct的实现。 以及bitstruct_field_enum宏,用于安全的生成BitStruct中字段的枚举类型。 详细用法请参考bitstructs的文档。

Macros§

bitstruct_cow
Use Cow to implement BitStruct. 使用写时复制的BitStruct实现。
bitstruct_owned
Copy the byte data directly, the BitStruct implementation with ownership. 直接复制字节数据,拥有所有权的BitStruct实现。
bitstruct_small
Suitable for small data structure BitStruct implementation. 适用于小型数据结构的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.