1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! common tools

mod impls;

pub enum BitState {
    Clear,
    Set,
}

/// simple bit ops
pub trait BitOps {
    fn set_bit(&mut self, pos: u8);
    fn clear_bit(&mut self, pos: u8);
    fn check_bit(&self, pos: u8) -> BitState;
}