pub struct Color {
pub red: u8,
pub green: u8,
pub blue: u8,
pub alpha: u8,
}Expand description
The possible Color of an Lable.
This encodes the rgba values of the color in the common format (0 -> 0%;
255/u8::MAX -> 100%).
Fields§
§red: u8The amount of red.
green: u8The amount of green.
blue: u8The amount of blue.
alpha: u8How transparent this color is.
Implementations§
Trait Implementations§
impl Copy 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 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