pub trait ToHex {
// Required methods
fn as_hex(&self) -> String;
fn to_hex_string(&self) -> String;
}Expand description
Implement the ToHex trait
Provides interfaces for functions to display hex versions of RGB colours
An implementation is provided for Rgb<u8>
Required Methods§
Sourcefn to_hex_string(&self) -> String
fn to_hex_string(&self) -> String
Return the colour code as a lowercase hex string with no prefix