pub struct Color(pub u8, pub u8, pub u8);Expand description
An RGB color with 8-bit channels.
Tuple Fields§
§0: u8§1: u8§2: u8Implementations§
Source§impl Color
impl Color
Sourcepub const BEAM_ORANGE: Self
pub const BEAM_ORANGE: Self
Beam orange — #ff8105.
Sourcepub const BRIGHT_YELLOW: Self
pub const BRIGHT_YELLOW: Self
Bright yellow — #ffd900.
Sourcepub const SUNBEAM_BLACK: Self
pub const SUNBEAM_BLACK: Self
Sunbeam black — #1f1f1f.
Sourcepub const SUNBEAM_FLAME: Self
pub const SUNBEAM_FLAME: Self
Sunbeam flame — #fb6424.
Sourcepub const SUNBEAM_ORANGE: Self
pub const SUNBEAM_ORANGE: Self
Sunbeam orange — #fa520f.
Sourcepub const SUNSHINE_300: Self
pub const SUNSHINE_300: Self
Sunshine 300 — #ffd06a.
Sourcepub const SUNSHINE_500: Self
pub const SUNSHINE_500: Self
Sunshine 500 — #ffb83e.
Sourcepub const SUNSHINE_700: Self
pub const SUNSHINE_700: Self
Sunshine 700 — #ffa110.
Sourcepub const SUNSHINE_900: Self
pub const SUNSHINE_900: Self
Sunshine 900 — #ff8a00.
Sourcepub const WARM_IVORY: Self
pub const WARM_IVORY: Self
Warm ivory — #fffaed.
Trait Implementations§
impl Copy for Color
impl Eq for Color
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnsafeUnpin for Color
impl UnwindSafe for Color
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.