Trait colourizer::StyledString[][src]

pub trait StyledString {
Show methods fn get_str(&self) -> String; fn do_off(&self) -> &str { ... }
fn remove_off(&self) -> String { ... }
fn fgblack(&self) -> String { ... }
fn fgred(&self) -> String { ... }
fn fggreen(&self) -> String { ... }
fn fgyellow(&self) -> String { ... }
fn fgblue(&self) -> String { ... }
fn fgmagenta(&self) -> String { ... }
fn fgcyan(&self) -> String { ... }
fn fgwhite(&self) -> String { ... }
fn bgblack(&self) -> String { ... }
fn bgred(&self) -> String { ... }
fn bggreen(&self) -> String { ... }
fn bgyellow(&self) -> String { ... }
fn bgblue(&self) -> String { ... }
fn bgmagenta(&self) -> String { ... }
fn bgcyan(&self) -> String { ... }
fn bgwhite(&self) -> String { ... }
fn rgb(&self, rgb: &str) -> String { ... }
fn bold(&self) -> String { ... }
fn italics(&self) -> String { ... }
fn underline(&self) -> String { ... }
fn strike(&self) -> String { ... }
}
Expand description

Trait with a set of functions of colouring a string.

Required methods

fn get_str(&self) -> String[src]

Every other function uses this to access the string itself.

Provided methods

fn do_off(&self) -> &str[src]

fn remove_off(&self) -> String[src]

fn fgblack(&self) -> String[src]

fn fgred(&self) -> String[src]

fn fggreen(&self) -> String[src]

fn fgyellow(&self) -> String[src]

fn fgblue(&self) -> String[src]

fn fgmagenta(&self) -> String[src]

fn fgcyan(&self) -> String[src]

fn fgwhite(&self) -> String[src]

fn bgblack(&self) -> String[src]

fn bgred(&self) -> String[src]

fn bggreen(&self) -> String[src]

fn bgyellow(&self) -> String[src]

fn bgblue(&self) -> String[src]

fn bgmagenta(&self) -> String[src]

fn bgcyan(&self) -> String[src]

fn bgwhite(&self) -> String[src]

fn rgb(&self, rgb: &str) -> String[src]

fn bold(&self) -> String[src]

fn italics(&self) -> String[src]

fn underline(&self) -> String[src]

fn strike(&self) -> String[src]

Implementations on Foreign Types

impl StyledString for String[src]

fn get_str(&self) -> String[src]

impl StyledString for &str[src]

fn get_str(&self) -> String[src]

Implementors