Styleable

Trait Styleable 

Source
pub trait Styleable {
    // Required method
    fn style(self, style: Style) -> ColoredString;
}
Expand description

Trait for applying styles to strings

Required Methods§

Source

fn style(self, style: Style) -> ColoredString

Apply a style to create a ColoredString

Implementors§

Source§

impl<T: AsRef<str>> Styleable for T