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.
Required Associated Types§
Required Methods§
Implementations on Foreign Types§
source§impl<C> Colors for BTreeMap<(usize, usize), C>where
C: ANSIFmt,
Available on crate feature std
only.
impl<C> Colors for BTreeMap<(usize, usize), C>where
C: ANSIFmt,
Available on crate feature
std
only.source§impl<C> Colors for HashMap<(usize, usize), C>where
C: ANSIFmt,
Available on crate feature std
only.
impl<C> Colors for HashMap<(usize, usize), C>where
C: ANSIFmt,
Available on crate feature
std
only.