pub enum Blue {
Show 17 variants
PowderBlue,
CadetBlue,
SteelBlue,
CornflowerBlue,
DeepSkyBlue,
DodgerBlue,
LightBlue,
SkyBlue,
LightSkyBlue,
MidnightBlue,
Navy,
DarkBlue,
MediumBlue,
Blue,
RoyalBlue,
Azure,
LightSteelBlue,
}Available on crate feature
extended only.Expand description
Shades of blue
Variants§
PowderBlue
CadetBlue
SteelBlue
CornflowerBlue
DeepSkyBlue
DodgerBlue
LightBlue
SkyBlue
LightSkyBlue
MidnightBlue
DarkBlue
MediumBlue
Blue
RoyalBlue
Azure
LightSteelBlue
Implementations§
Source§impl Blue
impl Blue
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 = Blue::Azure;
let rgb_colour = colour.to_rgb();
let string = rgb_colour.to_string();
assert_eq!("rgb(240,255,255)", 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 = Blue::Azure;
assert_eq!("#F0FFFF", colour.to_hex_triplet(Prefix::Hash));
Trait Implementations§
Source§impl ExtendedColour for Blue
impl ExtendedColour for Blue
impl Copy for Blue
impl Eq for Blue
impl StructuralPartialEq for Blue
Auto Trait Implementations§
impl Freeze for Blue
impl RefUnwindSafe for Blue
impl Send for Blue
impl Sync for Blue
impl Unpin for Blue
impl UnwindSafe for Blue
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