TextStyle

Trait TextStyle 

Source
pub trait TextStyle {
    // Required methods
    fn colorize(&self, color: Color) -> String;
    fn term_colorize(&self, color: Color) -> String;
    fn background(&self, color: Color) -> String;
    fn bold(&self) -> String;
    fn italic(&self) -> String;
    fn underline(&self) -> String;
    fn strikethrough(&self) -> String;
}

Required Methods§

Source

fn colorize(&self, color: Color) -> String

Source

fn term_colorize(&self, color: Color) -> String

Source

fn background(&self, color: Color) -> String

Source

fn bold(&self) -> String

Source

fn italic(&self) -> String

Source

fn underline(&self) -> String

Source

fn strikethrough(&self) -> String

Implementors§

Source§

impl<T> TextStyle for T
where T: Display + Debug,