Trait starbase_styles::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§