Struct Luma
#[repr(transparent)]
pub struct Luma<T>(pub [T; 1]);
Grayscale colors.
Fields
0: [T; 1]
Trait Implementations
impl PixelWithColorType for Luma<u16>
const COLOR_TYPE: ExtendedColorType = ExtendedColorType::L16;
impl PixelWithColorType for Luma<u8>
const COLOR_TYPE: ExtendedColorType = ExtendedColorType::L8;
impl<T> From<[T; 1]> for Luma<T>
fn from(c: [T; 1]) -> Self
impl<T> Index<usize> for Luma<T>
type Output = T;fn index(&self, _index: usize) -> &T
impl<T> IndexMut<usize> for Luma<T>
fn index_mut(&mut self, _index: usize) -> &mut T
impl<T: Clone> Clone for Luma<T>
fn clone(&self) -> Self
impl<T: Copy> Copy for Luma<T>
impl<T: Debug> Debug for Luma<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T: Eq> Eq for Luma<T>
impl<T: Hash> Hash for Luma<T>
fn hash<__H: Hasher>(&self, state: &mut __H)
impl<T: PartialEq> PartialEq for Luma<T>
fn eq(&self, other: &Self) -> bool
impl<T: PartialEq> StructuralPartialEq for Luma<T>
impl<T: Primitive> Pixel for Luma<T>
type Subpixel = T;const CHANNEL_COUNT: u8 = 1;fn channels(&self) -> &[T]fn channels_mut(&mut self) -> &mut [T]const COLOR_MODEL: &'static str = "Y";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) -> Luma<T>fn from_slice(slice: &[T]) -> &Luma<T>fn from_slice_mut(slice: &mut [T]) -> &mut Luma<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) -> Luma<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) -> Luma<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) -> Luma<T> where F: FnMut(T, T) -> T,fn apply2<F>(&mut self, other: &Luma<T>, f: F) where F: FnMut(T, T) -> T,fn invert(&mut self)fn blend(&mut self, other: &Luma<T>)