#[repr(C)]pub struct Rgb<T> {
pub r: T,
pub g: T,
pub b: T,
}
Expand description
Represents any RGB values
Fields§
§r: T
Red component
g: T
Green component
b: T
Blue component
Implementations§
Source§impl<T> Rgb<T>
impl<T> Rgb<T>
Trait Implementations§
Source§impl<T> AddAssign<f32> for Rgb<T>
impl<T> AddAssign<f32> for Rgb<T>
Source§fn add_assign(&mut self, rhs: f32)
fn add_assign(&mut self, rhs: f32)
Performs the
+=
operation. Read moreSource§impl<T> AddAssign<f64> for Rgb<T>
impl<T> AddAssign<f64> for Rgb<T>
Source§fn add_assign(&mut self, rhs: f64)
fn add_assign(&mut self, rhs: f64)
Performs the
+=
operation. Read moreSource§impl<T> AddAssign<i16> for Rgb<T>
impl<T> AddAssign<i16> for Rgb<T>
Source§fn add_assign(&mut self, rhs: i16)
fn add_assign(&mut self, rhs: i16)
Performs the
+=
operation. Read moreSource§impl<T> AddAssign<i32> for Rgb<T>
impl<T> AddAssign<i32> for Rgb<T>
Source§fn add_assign(&mut self, rhs: i32)
fn add_assign(&mut self, rhs: i32)
Performs the
+=
operation. Read moreSource§impl<T> AddAssign<i8> for Rgb<T>
impl<T> AddAssign<i8> for Rgb<T>
Source§fn add_assign(&mut self, rhs: i8)
fn add_assign(&mut self, rhs: i8)
Performs the
+=
operation. Read moreSource§impl<T> AddAssign<u16> for Rgb<T>
impl<T> AddAssign<u16> for Rgb<T>
Source§fn add_assign(&mut self, rhs: u16)
fn add_assign(&mut self, rhs: u16)
Performs the
+=
operation. Read moreSource§impl<T> AddAssign<u32> for Rgb<T>
impl<T> AddAssign<u32> for Rgb<T>
Source§fn add_assign(&mut self, rhs: u32)
fn add_assign(&mut self, rhs: u32)
Performs the
+=
operation. Read moreSource§impl<T> AddAssign<u8> for Rgb<T>
impl<T> AddAssign<u8> for Rgb<T>
Source§fn add_assign(&mut self, rhs: u8)
fn add_assign(&mut self, rhs: u8)
Performs the
+=
operation. Read moreSource§impl<T> AddAssign for Rgb<T>where
T: AddAssign<T>,
impl<T> AddAssign for Rgb<T>where
T: AddAssign<T>,
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl<T> DivAssign<f32> for Rgb<T>
impl<T> DivAssign<f32> for Rgb<T>
Source§fn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
Performs the
/=
operation. Read moreSource§impl<T> DivAssign<f64> for Rgb<T>
impl<T> DivAssign<f64> for Rgb<T>
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/=
operation. Read moreSource§impl<T> DivAssign<i16> for Rgb<T>
impl<T> DivAssign<i16> for Rgb<T>
Source§fn div_assign(&mut self, rhs: i16)
fn div_assign(&mut self, rhs: i16)
Performs the
/=
operation. Read moreSource§impl<T> DivAssign<i32> for Rgb<T>
impl<T> DivAssign<i32> for Rgb<T>
Source§fn div_assign(&mut self, rhs: i32)
fn div_assign(&mut self, rhs: i32)
Performs the
/=
operation. Read moreSource§impl<T> DivAssign<i8> for Rgb<T>
impl<T> DivAssign<i8> for Rgb<T>
Source§fn div_assign(&mut self, rhs: i8)
fn div_assign(&mut self, rhs: i8)
Performs the
/=
operation. Read moreSource§impl<T> DivAssign<u16> for Rgb<T>
impl<T> DivAssign<u16> for Rgb<T>
Source§fn div_assign(&mut self, rhs: u16)
fn div_assign(&mut self, rhs: u16)
Performs the
/=
operation. Read moreSource§impl<T> DivAssign<u32> for Rgb<T>
impl<T> DivAssign<u32> for Rgb<T>
Source§fn div_assign(&mut self, rhs: u32)
fn div_assign(&mut self, rhs: u32)
Performs the
/=
operation. Read moreSource§impl<T> DivAssign<u8> for Rgb<T>
impl<T> DivAssign<u8> for Rgb<T>
Source§fn div_assign(&mut self, rhs: u8)
fn div_assign(&mut self, rhs: u8)
Performs the
/=
operation. Read moreSource§impl<T> DivAssign for Rgb<T>where
T: DivAssign<T>,
impl<T> DivAssign for Rgb<T>where
T: DivAssign<T>,
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/=
operation. Read moreSource§impl<T> MulAssign<f32> for Rgb<T>
impl<T> MulAssign<f32> for Rgb<T>
Source§fn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
Performs the
*=
operation. Read moreSource§impl<T> MulAssign<f64> for Rgb<T>
impl<T> MulAssign<f64> for Rgb<T>
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*=
operation. Read moreSource§impl<T> MulAssign<i16> for Rgb<T>
impl<T> MulAssign<i16> for Rgb<T>
Source§fn mul_assign(&mut self, rhs: i16)
fn mul_assign(&mut self, rhs: i16)
Performs the
*=
operation. Read moreSource§impl<T> MulAssign<i32> for Rgb<T>
impl<T> MulAssign<i32> for Rgb<T>
Source§fn mul_assign(&mut self, rhs: i32)
fn mul_assign(&mut self, rhs: i32)
Performs the
*=
operation. Read moreSource§impl<T> MulAssign<i8> for Rgb<T>
impl<T> MulAssign<i8> for Rgb<T>
Source§fn mul_assign(&mut self, rhs: i8)
fn mul_assign(&mut self, rhs: i8)
Performs the
*=
operation. Read moreSource§impl<T> MulAssign<u16> for Rgb<T>
impl<T> MulAssign<u16> for Rgb<T>
Source§fn mul_assign(&mut self, rhs: u16)
fn mul_assign(&mut self, rhs: u16)
Performs the
*=
operation. Read moreSource§impl<T> MulAssign<u32> for Rgb<T>
impl<T> MulAssign<u32> for Rgb<T>
Source§fn mul_assign(&mut self, rhs: u32)
fn mul_assign(&mut self, rhs: u32)
Performs the
*=
operation. Read moreSource§impl<T> MulAssign<u8> for Rgb<T>
impl<T> MulAssign<u8> for Rgb<T>
Source§fn mul_assign(&mut self, rhs: u8)
fn mul_assign(&mut self, rhs: u8)
Performs the
*=
operation. Read moreSource§impl<T> MulAssign for Rgb<T>where
T: MulAssign<T>,
impl<T> MulAssign for Rgb<T>where
T: MulAssign<T>,
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moreSource§impl<T: PartialOrd> PartialOrd for Rgb<T>
impl<T: PartialOrd> PartialOrd for Rgb<T>
impl<T: Copy> Copy for Rgb<T>
impl<T> StructuralPartialEq for Rgb<T>
Auto Trait Implementations§
impl<T> Freeze for Rgb<T>where
T: Freeze,
impl<T> RefUnwindSafe for Rgb<T>where
T: RefUnwindSafe,
impl<T> Send for Rgb<T>where
T: Send,
impl<T> Sync for Rgb<T>where
T: Sync,
impl<T> Unpin for Rgb<T>where
T: Unpin,
impl<T> UnwindSafe for Rgb<T>where
T: UnwindSafe,
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