pub trait Colors {
type Color: ANSIFmt;
// Required methods
fn get_color(&self, pos: (usize, usize)) -> Option<&Self::Color>;
fn is_empty(&self) -> bool;
}
Expand description
A trait which represents map of colors.
pub trait Colors {
type Color: ANSIFmt;
// Required methods
fn get_color(&self, pos: (usize, usize)) -> Option<&Self::Color>;
fn is_empty(&self) -> bool;
}
A trait which represents map of colors.