#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd)]
#[repr(transparent)]
pub struct Boolean(pub i32);

impl Boolean {
    pub const FALSE: Self = Self(0);
    pub const TRUE: Self = Self(1);
}

impl From<bool> for Boolean {
    #[inline]
    fn from(v: bool) -> Self {
        if v { Self::TRUE } else { Self::FALSE }
    }
}
