pub trait BitFlags { // Required methods fn is_set(&self, bit: u8) -> bool; fn is_clear(&self, bit: u8) -> bool; }
Simple check for particular bits being set or cleared.
Blanket implementation for any types convertible to u32.