#[repr(C)]pub struct Grb<T> {
pub g: T,
pub r: T,
pub b: T,
}
Expand description
Fields§
§g: T
Green Component
r: T
Red Component
b: T
Blue Component
Implementations§
Trait Implementations§
source§impl<T> AddAssign<T> for Grb<T>
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>
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>
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>
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>
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>
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>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)