pub struct Color {
pub r: u8,
pub g: u8,
pub b: u8,
}Expand description
A simple struct to represent the color in the RGB format.
Fields§
§r: u8A number between 0 and 255 which represents Red spectrum.
g: u8A number between 0 and 255 which represents Green spectrum.
b: u8A number between 0 and 255 which represents Blue spectrum.
Implementations§
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