Struct colored::customcolors::CustomColor
source · pub struct CustomColor {
pub r: u8,
pub g: u8,
pub b: u8,
}Expand description
Custom color structure, it will generate a true color in the result
Fields§
§r: u8Red
g: u8Green
b: u8Blue
Implementations§
Trait Implementations§
source§impl Clone for CustomColor
impl Clone for CustomColor
source§fn clone(&self) -> CustomColor
fn clone(&self) -> CustomColor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CustomColor
impl Debug for CustomColor
source§impl PartialEq<CustomColor> for CustomColor
impl PartialEq<CustomColor> for CustomColor
source§fn eq(&self, other: &CustomColor) -> bool
fn eq(&self, other: &CustomColor) -> bool
This method tests for
self and other values to be equal, and is used
by ==.