#[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>
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, B> ColorComponentMap<Grb<B>, T, B> for Grb<T>where
T: Copy,
impl<T, B> ColorComponentMap<Grb<B>, T, B> for Grb<T>where
T: Copy,
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 for Grb<T>where
T: Ord,
impl<T> Ord for Grb<T>where
T: Ord,
Source§impl<T> PartialOrd for Grb<T>where
T: PartialOrd,
impl<T> PartialOrd for Grb<T>where
T: PartialOrd,
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 for Grb<T>where
T: Copy,
impl<T> Eq for Grb<T>where
T: Eq,
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§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.Source§impl<Target, Original> VectorizedInto<Target> for Originalwhere
Target: VectorizedFrom<Original>,
impl<Target, Original> VectorizedInto<Target> for Originalwhere
Target: VectorizedFrom<Original>,
Source§fn vectorized_into(self) -> Target
fn vectorized_into(self) -> Target
Performs the conversion.