Trait inksac::types::Stylish

source ·
pub trait Stylish {
    // Required method
    fn styled(self, style: Style) -> ColoredString;
}
Expand description

Trait for types that can be styled with a Style

Required Methods§

source

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

Implementations on Foreign Types§

source§

impl Stylish for String

source§

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

source§

impl<'a> Stylish for &'a str

source§

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

Implementors§