pub struct ColorRgb {
pub r: u8,
pub g: u8,
pub b: u8,
}
Expand description
A colour in red-green-blue format.
Fields§
§r: u8
The red channel of the colour, between 0 and 255.
g: u8
The green channel of the colour, between 0 and 255.
b: u8
The 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