Struct rich_sdl2_rust::color::Rgb
source · pub struct Rgb {
pub r: u8,
pub g: u8,
pub b: u8,
}
Expand description
A RGB color structure.
Fields§
§r: u8
A red component in RGB.
g: u8
A green component in RGB.
b: u8
A blue component in RGB.
Trait Implementations§
source§impl Ord for Rgb
impl Ord for Rgb
source§impl PartialOrd for Rgb
impl PartialOrd for Rgb
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Rgb
impl Eq for Rgb
impl StructuralPartialEq for Rgb
Auto Trait Implementations§
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