HTMLColorable

Trait HTMLColorable 

Source
pub trait HTMLColorable {
    // Required methods
    fn html_color(&self, color: &str) -> String;
    fn html_rgb(&self, r: u8, g: u8, b: u8) -> String;

    // Provided methods
    fn html_cyan(&self) -> String { ... }
    fn html_green(&self) -> String { ... }
    fn html_magenta(&self) -> String { ... }
    fn html_yellow(&self) -> String { ... }
    fn html_blue(&self) -> String { ... }
}

Required Methods§

Source

fn html_color(&self, color: &str) -> String

Source

fn html_rgb(&self, r: u8, g: u8, b: u8) -> String

Provided Methods§

Implementations on Foreign Types§

Source§

impl HTMLColorable for &str

Source§

fn html_color(&self, color: &str) -> String

Source§

fn html_rgb(&self, r: u8, g: u8, b: u8) -> String

Source§

impl HTMLColorable for String

Source§

fn html_color(&self, color: &str) -> String

Source§

fn html_rgb(&self, r: u8, g: u8, b: u8) -> String

Implementors§