Trait rust_colors::Color

source ·
pub trait Color<T: Debug> {
    type Transform;

    // Required methods
    fn color(&self, txt: T, color: Colors) -> Self::Transform;
    fn bold_color(&self, txt: T, bold_color: Colors) -> Self::Transform;
    fn underline_color(
        &self,
        txt: T,
        underline_color: Colors,
    ) -> Self::Transform;
}

Required Associated Types§

Required Methods§

source

fn color(&self, txt: T, color: Colors) -> Self::Transform

source

fn bold_color(&self, txt: T, bold_color: Colors) -> Self::Transform

source

fn underline_color(&self, txt: T, underline_color: Colors) -> Self::Transform

Implementors§

source§

impl<T: Debug> Color<T> for Ansi