Derive Macro bondrewd_derive::BitfieldEnum [−][src]
#[derive(BitfieldEnum)]
{
// Attributes available to this derive:
#[bondrewd_enum]
}
Expand description
Generates an implementation of bondrewd::BitfieldEnum trait.
Enum Derive Tasks
- from_primitive.
- into_primitive.
- Invalid flag (Invalid values will be dropped an a generic no field variant will be used).
- Invalid catch (stores the actual primitive in a 1 field Variant).
- types other than u8.