pub struct RGB {
pub red: u8,
pub green: u8,
pub blue: u8,
}Expand description
Red, green and blue components of a color.
Fields§
§red: u8Red component.
green: u8Green component.
blue: u8Blue component.
Implementations§
Trait Implementations§
Source§impl Ord for RGB
impl Ord for RGB
Source§impl PartialOrd for RGB
impl PartialOrd for RGB
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 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