macro_rules! bitwise_enum {
($name:ident) => { ... };
}Expand description
Helper macro to create a bitwise enum.
The enum type is derived with the BitAnd, BitOr, BitXor, BitAndAssign,
BitOrAssign, and BitXorAssign traits.
ยงExamples
nutype_enum! {
pub enum IoFlags(u8) {
Seek = 0x1,
Write = 0x2,
Read = 0x4,
}
}
bitwise_enum!(IoFlags);