Stylize

Trait Stylize 

Source
pub trait Stylize {
    // Required method
    fn style(&self, style: Style) -> String;
}

Required Methods§

Source

fn style(&self, style: Style) -> String

Wrap the current value in the given style (an ANSI color escape code).

Implementations on Foreign Types§

Source§

impl Stylize for &'static str

Source§

fn style(&self, style: Style) -> String

Source§

impl Stylize for i8

Source§

fn style(&self, style: Style) -> String

Source§

impl Stylize for i16

Source§

fn style(&self, style: Style) -> String

Source§

impl Stylize for i32

Source§

fn style(&self, style: Style) -> String

Source§

impl Stylize for i64

Source§

fn style(&self, style: Style) -> String

Source§

impl Stylize for i128

Source§

fn style(&self, style: Style) -> String

Source§

impl Stylize for isize

Source§

fn style(&self, style: Style) -> String

Source§

impl Stylize for u8

Source§

fn style(&self, style: Style) -> String

Source§

impl Stylize for u16

Source§

fn style(&self, style: Style) -> String

Source§

impl Stylize for u32

Source§

fn style(&self, style: Style) -> String

Source§

impl Stylize for u64

Source§

fn style(&self, style: Style) -> String

Source§

impl Stylize for u128

Source§

fn style(&self, style: Style) -> String

Source§

impl Stylize for usize

Source§

fn style(&self, style: Style) -> String

Source§

impl Stylize for String

Source§

fn style(&self, style: Style) -> String

Source§

impl Stylize for PathBuf

Source§

fn style(&self, style: Style) -> String

Implementors§