#[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, A> Ord for GrayA<T, A>
impl<T, A> 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, A> PartialOrd for GrayA<T, A>where
T: PartialOrd,
A: PartialOrd,
impl<T, A> PartialOrd for GrayA<T, A>where
T: PartialOrd,
A: PartialOrd,
impl<T, A> Copy for GrayA<T, A>
impl<T, A> 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
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.