pub struct Rgb {
pub r: i32,
pub g: i32,
pub b: i32,
}Expand description
An RGB color. Components are stored as i32 to faithfully carry through out-of-range
rgb() inputs (the reference does not clamp).
Fields§
§r: i32Red component (0–255 for valid input).
g: i32Green component.
b: i32Blue component.
Trait Implementations§
impl Copy for Rgb
impl Eq for Rgb
impl StructuralPartialEq for Rgb
Auto Trait Implementations§
impl Freeze for Rgb
impl RefUnwindSafe for Rgb
impl Send for Rgb
impl Sync for Rgb
impl Unpin for Rgb
impl UnsafeUnpin for Rgb
impl UnwindSafe for Rgb
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