bitstruct_field_enum

Attribute Macro bitstruct_field_enum 

Source
#[bitstruct_field_enum]
Expand description

Used to declare the enumeration type of the field. 用于声明字段的枚举类型。

This attribute should be placed above #[derive(Debug)], otherwise Debug will not recognize the automatically completed variants. 这个属性应该在#[derive(Debug)]上方,否则Debug不会识别到自动补全的变体。