#[repr(C)]pub struct Grb<T> {
    pub g: T,
    pub r: T,
    pub b: T,
}Expand description
Fields§
§g: TGreen Component
r: TRed Component
b: TBlue Component
Implementations§
Trait Implementations§
Source§impl<T> AddAssign<T> for Grb<T>
px + 1
 
impl<T> AddAssign<T> for Grb<T>
px + 1
Source§fn add_assign(&mut self, r: T)
 
fn add_assign(&mut self, r: T)
Performs the 
+= operation. Read moreSource§impl<T> AddAssign for Grb<T>
px + px
 
impl<T> AddAssign for Grb<T>
px + px
Source§fn add_assign(&mut self, other: GRB<T>)
 
fn add_assign(&mut self, other: GRB<T>)
Performs the 
+= operation. Read moreSource§impl<T> AsPixels<Grb<T>> for [T]
 
impl<T> AsPixels<Grb<T>> for [T]
Source§fn as_pixels_mut(&mut self) -> &mut [GRB<T>]
 
fn as_pixels_mut(&mut self) -> &mut [GRB<T>]
Use 
::bytemuck::cast_slice_mut() instead. Read moreSource§impl<T: Copy, B> ColorComponentMap<Grb<B>, T, B> for Grb<T>
 
impl<T: Copy, B> ColorComponentMap<Grb<B>, T, B> for Grb<T>
Source§impl<T> ComponentSlice<T> for Grb<T>
 
impl<T> ComponentSlice<T> for Grb<T>
Source§impl<T> DivAssign<T> for Grb<T>
px * 1
 
impl<T> DivAssign<T> for Grb<T>
px * 1
Source§fn div_assign(&mut self, r: T)
 
fn div_assign(&mut self, r: T)
Performs the 
/= operation. Read moreSource§impl<T> MulAssign<T> for Grb<T>
px * 1
 
impl<T> MulAssign<T> for Grb<T>
px * 1
Source§fn mul_assign(&mut self, r: T)
 
fn mul_assign(&mut self, r: T)
Performs the 
*= operation. Read moreSource§impl<T> MulAssign for Grb<T>
px * px
 
impl<T> MulAssign for Grb<T>
px * px
Source§fn mul_assign(&mut self, other: GRB<T>)
 
fn mul_assign(&mut self, other: GRB<T>)
Performs the 
*= operation. Read moreSource§impl<T: Ord> Ord for Grb<T>
 
impl<T: Ord> Ord for Grb<T>
Source§impl<T: PartialOrd> PartialOrd for Grb<T>
 
impl<T: PartialOrd> PartialOrd for Grb<T>
Source§impl<T> SubAssign<T> for Grb<T>
px - 1
 
impl<T> SubAssign<T> for Grb<T>
px - 1
Source§fn sub_assign(&mut self, r: T)
 
fn sub_assign(&mut self, r: T)
Performs the 
-= operation. Read moreSource§impl<T> SubAssign for Grb<T>
px - px
 
impl<T> SubAssign for Grb<T>
px - px
Source§fn sub_assign(&mut self, other: GRB<T>)
 
fn sub_assign(&mut self, other: GRB<T>)
Performs the 
-= operation. Read moreimpl<T: Copy> Copy for Grb<T>
impl<T: Eq> Eq for Grb<T>
impl<T> StructuralPartialEq for Grb<T>
Auto Trait Implementations§
impl<T> Freeze for Grb<T>where
    T: Freeze,
impl<T> RefUnwindSafe for Grb<T>where
    T: RefUnwindSafe,
impl<T> Send for Grb<T>where
    T: Send,
impl<T> Sync for Grb<T>where
    T: Sync,
impl<T> Unpin for Grb<T>where
    T: Unpin,
impl<T> UnwindSafe for Grb<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