pub enum White {
Show 20 variants
AntiqueWhite,
Beige,
Bisque,
BlanchedAlmond,
Wheat,
CornSilk,
White,
NavajoWhite,
MistyRose,
LavenderBlush,
Linen,
OldLace,
SeaShell,
MintCream,
FloralWhite,
GhostWhite,
Ivory,
Snow,
WhiteSmoke,
AliceBlue,
}Expand description
Shades of white
Variants§
AntiqueWhite
Beige
Bisque
BlanchedAlmond
Wheat
CornSilk
White
MistyRose
LavenderBlush
Linen
OldLace
SeaShell
MintCream
FloralWhite
GhostWhite
Ivory
Snow
WhiteSmoke
AliceBlue
Implementations§
Source§impl White
impl White
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 = White::OldLace;
let rgb_colour = colour.to_rgb();
let string = rgb_colour.to_string();
assert_eq!("rgb(253,245,230)", 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 = White::LavenderBlush;
assert_eq!("#FFF0F5", colour.to_hex_triplet(Prefix::Hash));
Trait Implementations§
Source§impl ExtendedColour for White
impl ExtendedColour for White
impl Copy for White
impl Eq for White
impl StructuralPartialEq for White
Auto Trait Implementations§
impl Freeze for White
impl RefUnwindSafe for White
impl Send for White
impl Sync for White
impl Unpin for White
impl UnwindSafe for White
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