use core::fmt::Display; use crate::drivers::io::framebuffer::colour::Colour; #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub enum RenderError { Generic, } impl Display for RenderError { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { match self { Self::Generic => write!(f, "Generic render error"), } } } impl core::error::Error for RenderError {} pub struct ColouredChar { ch: u8, colour: Colour, }