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§
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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".