Trait ryna::html_ext::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§