Struct Rgba
#[repr(transparent)]
pub struct Rgba<T>(pub [T; 4]);
RGB colors + alpha channel
Fields
0: [T; 4]
Trait Implementations
impl PixelWithColorType for Rgba<f32>
const COLOR_TYPE: ExtendedColorType = ExtendedColorType::Rgba32F;
impl PixelWithColorType for Rgba<u16>
const COLOR_TYPE: ExtendedColorType = ExtendedColorType::Rgba16;
impl PixelWithColorType for Rgba<u8>
const COLOR_TYPE: ExtendedColorType = ExtendedColorType::Rgba8;
impl<T> From<[T; 4]> for Rgba<T>
fn from(c: [T; 4]) -> Self
impl<T> Index<usize> for Rgba<T>
type Output = T;fn index(&self, _index: usize) -> &T
impl<T> IndexMut<usize> for Rgba<T>
fn index_mut(&mut self, _index: usize) -> &mut T
impl<T: Clone> Clone for Rgba<T>
fn clone(&self) -> Self
impl<T: Copy> Copy for Rgba<T>
impl<T: Debug> Debug for Rgba<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T: Eq> Eq for Rgba<T>
impl<T: Hash> Hash for Rgba<T>
fn hash<__H: Hasher>(&self, state: &mut __H)
impl<T: PartialEq> PartialEq for Rgba<T>
fn eq(&self, other: &Self) -> bool
impl<T: PartialEq> StructuralPartialEq for Rgba<T>
impl<T: Primitive + Enlargeable> Pixel for Rgba<T>
type Subpixel = T;const CHANNEL_COUNT: u8 = 4;fn channels(&self) -> &[T]fn channels_mut(&mut self) -> &mut [T]const COLOR_MODEL: &'static str = "RGBA";const HAS_ALPHA: bool = _;fn alpha(&self) -> Self::Subpixelfn channels4(&self) -> (T, T, T, T)fn from_channels(a: T, b: T, c: T, d: T) -> Rgba<T>fn from_slice(slice: &[T]) -> &Rgba<T>fn from_slice_mut(slice: &mut [T]) -> &mut Rgba<T>fn to_rgb(&self) -> Rgb<T>fn to_rgba(&self) -> Rgba<T>fn to_luma(&self) -> Luma<T>fn to_luma_alpha(&self) -> LumaA<T>fn map<F>(&self, f: F) -> Rgba<T> where F: FnMut(T) -> T,fn apply<F>(&mut self, f: F) where F: FnMut(T) -> T,fn map_with_alpha<F, G>(&self, f: F, g: G) -> Rgba<T> where F: FnMut(T) -> T, G: FnMut(T) -> T,fn apply_with_alpha<F, G>(&mut self, f: F, g: G) where F: FnMut(T) -> T, G: FnMut(T) -> T,fn map2<F>(&self, other: &Self, f: F) -> Rgba<T> where F: FnMut(T, T) -> T,fn apply2<F>(&mut self, other: &Rgba<T>, f: F) where F: FnMut(T, T) -> T,fn invert(&mut self)fn blend(&mut self, other: &Rgba<T>)