use crate::{
Unsigned, U0, U1, U2, U3, U4, U5, U6, U7, U8,
IsLess,
};
pub trait Bit: IsLess<U8> + Unsigned {
const HEAD_MASK: u8 = ((1_u16 << (Self::USIZE + 1)) - 1) as u8;
const BIT_MASK: u8 = 1 << Self::USIZE;
const TAIL_MASK: u8 = !((1_u16 << Self::USIZE) - 1) as u8;
}
impl Bit for U0 { }
impl Bit for U1 { }
impl Bit for U2 { }
impl Bit for U3 { }
impl Bit for U4 { }
impl Bit for U5 { }
impl Bit for U6 { }
impl Bit for U7 { }