#[repr(C)]pub struct GrayA<T, A = T> {
pub v: T,
pub a: A,
}
Expand description
A Value (brightness) + Alpha
pixel (rgb crate v0.9)
This pixel is commonly used for grayscale images.
Fields§
§v: T
Value - the brightness component. May be luma or luminance.
a: A
Alpha Component
Implementations§
Trait Implementations§
Source§impl<T: Ord, A: Ord> Ord for GrayA<T, A>
impl<T: Ord, A: Ord> Ord for GrayA<T, A>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd, A: PartialOrd> PartialOrd for GrayA<T, A>
impl<T: PartialOrd, A: PartialOrd> PartialOrd for GrayA<T, A>
impl<T: Copy, A: Copy> Copy for GrayA<T, A>
impl<T: Eq, A: Eq> Eq for GrayA<T, A>
impl<T, A> StructuralPartialEq for GrayA<T, A>
Auto Trait Implementations§
impl<T, A> Freeze for GrayA<T, A>
impl<T, A> RefUnwindSafe for GrayA<T, A>where
T: RefUnwindSafe,
A: RefUnwindSafe,
impl<T, A> Send for GrayA<T, A>
impl<T, A> Sync for GrayA<T, A>
impl<T, A> Unpin for GrayA<T, A>
impl<T, A> UnwindSafe for GrayA<T, A>where
T: UnwindSafe,
A: 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