pub struct ColorRgb {
pub r: u8,
pub g: u8,
pub b: u8,
}Expand description
A colour in red-green-blue format.
Fields§
§r: u8The red channel of the colour, between 0 and 255.
g: u8The green channel of the colour, between 0 and 255.
b: u8The blue channel of the colour, between 0 and 255.
Implementations§
Trait Implementations§
impl Eq for ColorRgb
impl StructuralPartialEq for ColorRgb
Auto Trait Implementations§
impl Freeze for ColorRgb
impl RefUnwindSafe for ColorRgb
impl Send for ColorRgb
impl Sync for ColorRgb
impl Unpin for ColorRgb
impl UnwindSafe for ColorRgb
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