Expand description
Color has public fields r, g, b of type u8 which you can read
directly, or alternatively you may use the LowerHex and UpperHex impls to
format it as a hex color string.
format!("#{:x}", color)⟶#f0f0f0format!("#{:X}", color)⟶#F0F0F0
Fields
r: u8Red
g: u8Green
b: u8Blue
Implementations
Trait Implementations
impl Copy for Color
Auto Trait Implementations
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more