coloriz 0.2.0

A simple library for colorful temrinal
Documentation
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub(crate) enum TargetGround {
    Foreground,
    Background,
}

impl TargetGround {
    #[inline]
    pub(crate) const fn code(&self) -> u8 {
        match self {
            Self::Foreground => 30,
            Self::Background => 40,
        }
    }
}

pub(crate) trait ANSIColorCode {
    fn ansi_color_code(&self, target: TargetGround) -> String;
}