pub trait BitFlags<T> { fn get_mask(self) -> T; fn get_pos(self) -> T; }
Utility trait
Return a bitmask with the relevant bits set and others cleared
Return the position/offset of the relevant bit(s)