pub trait BitFlags<T> {
    fn get_mask(self) -> T;
    fn get_pos(self) -> T;
}
Expand description

Utility trait

Required Methods

Return a bitmask with the relevant bits set and others cleared

Return the position/offset of the relevant bit(s)

Implementors