pub enum Cyan {
Show 15 variants
MediumAquaMarine,
MediumSeaGreen,
LightSeaGreen,
DarkSlateGray,
Teal,
DarkCyan,
Aqua,
Cyan,
LightCyan,
DarkTurquoise,
Turquoise,
MediumTurquoise,
PaleTurquoise,
AquaMarine,
Honeydew,
}Expand description
Shades of cyan
Variants§
MediumAquaMarine
MediumSeaGreen
LightSeaGreen
DarkSlateGray
Teal
DarkCyan
Aqua
Cyan
LightCyan
DarkTurquoise
Turquoise
MediumTurquoise
PaleTurquoise
AquaMarine
Honeydew
Implementations§
Source§impl Cyan
impl Cyan
Sourcepub fn to_rgb(&self) -> Rgb<u8>
pub fn to_rgb(&self) -> Rgb<u8>
Display the colour name as an RGB Tuple
§Example
let colour = Cyan::Teal;
let rgb_colour = colour.to_rgb();
let string = rgb_colour.to_string();
assert_eq!("rgb(0,128,128)", string);
Sourcepub fn to_hex_triplet(&self, prefix: Prefix) -> String
pub fn to_hex_triplet(&self, prefix: Prefix) -> String
Display the colour name as an RGB Tuple
§Example
let colour = Cyan::Teal;
assert_eq!("#008080", colour.to_hex_triplet(Prefix::Hash));
Trait Implementations§
Source§impl ExtendedColour for Cyan
impl ExtendedColour for Cyan
impl Copy for Cyan
impl Eq for Cyan
impl StructuralPartialEq for Cyan
Auto Trait Implementations§
impl Freeze for Cyan
impl RefUnwindSafe for Cyan
impl Send for Cyan
impl Sync for Cyan
impl Unpin for Cyan
impl UnwindSafe for Cyan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more