pub fn from_u8(v: u8) -> Option<Self> {
        match v {
            v if v == ColorClassic::Black as u8 => Some(ColorClassic::Black),
            v if v == ColorClassic::Red as u8 => Some(ColorClassic::Red),
            v if v == ColorClassic::Yellow as u8 => Some(ColorClassic::Yellow),
            v if v == ColorClassic::Green as u8 => Some(ColorClassic::Green),
            v if v == ColorClassic::Cyan as u8 => Some(ColorClassic::Cyan),
            v if v == ColorClassic::Blue as u8 => Some(ColorClassic::Blue),
            v if v == ColorClassic::Magenta as u8 => {
                Some(ColorClassic::Magenta)
            }
            v if v == ColorClassic::White as u8 => Some(ColorClassic::White),
            v if v == ColorClassic::Orange as u8 => Some(ColorClassic::Orange),
            v if v == ColorClassic::Amber as u8 => Some(ColorClassic::Amber),
            _ => None,
        }
    }
/// Maybe convert a u8 into a ColorClassic
Maybe convert a u8 into a ColorClassic
Maybe convert a u8 into a ColorClassic
pub fn from_u8(v: u8) -> Option<Self> {
        match v {
            v if v == ColorClassic::Black as u8 => Some(ColorClassic::Black),
            v if v == ColorClassic::Red as u8 => Some(ColorClassic::Red),
            v if v == ColorClassic::Yellow as u8 => Some(ColorClassic::Yellow),
            v if v == ColorClassic::Green as u8 => Some(ColorClassic::Green),
            v if v == ColorClassic::Cyan as u8 => Some(ColorClassic::Cyan),
            v if v == ColorClassic::Blue as u8 => Some(ColorClassic::Blue),
            v if v == ColorClassic::Magenta as u8 => {
                Some(ColorClassic::Magenta)
            }
            v if v == ColorClassic::White as u8 => Some(ColorClassic::White),
            v if v == ColorClassic::Orange as u8 => Some(ColorClassic::Orange),
            v if v == ColorClassic::Amber as u8 => Some(ColorClassic::Amber),
            _ => None,
        }
    }
pub fn from_u8 ( v : u8 ) -> Option < Self > { match v { v if v == ColorClassic :: Black as u8 => Some ( ColorClassic :: Black ) , v if v == ColorClassic :: Red as u8 => Some ( ColorClassic :: Red ) , v if v == ColorClassic :: Yellow as u8 => Some ( ColorClassic :: Yellow ) , v if v == ColorClassic :: Green as u8 => Some ( ColorClassic :: Green ) , v if v == ColorClassic :: Cyan as u8 => Some ( ColorClassic :: Cyan ) , v if v == ColorClassic :: Blue as u8 => Some ( ColorClassic :: Blue ) , v if v == ColorClassic :: Magenta as u8 => { Some ( ColorClassic :: Magenta ) } v if v == ColorClassic :: White as u8 => Some ( ColorClassic :: White ) , v if v == ColorClassic :: Orange as u8 => Some ( ColorClassic :: Orange ) , v if v == ColorClassic :: Amber as u8 => Some ( ColorClassic :: Amber ) , _ => None , } }
Maybe convert a u8 into a ColorClassic
Maybe convert a u8 into a ColorClassic
v
u8