#[repr(C)]pub struct GrayAlpha<ComponentType, AlphaComponentType = ComponentType>(pub ComponentType, pub AlphaComponentType);
Expand description
Grayscale with alpha. Use .0
/.1
to access.
Tuple Fields
0: ComponentType
brightness level
1: AlphaComponentType
alpha
Implementations
sourceimpl<T: Copy, A: Clone> GrayAlpha<T, A>
impl<T: Copy, A: Clone> GrayAlpha<T, A>
Trait Implementations
sourceimpl<T, A> AddAssign<GrayAlpha<T, A>> for GrayAlpha<T, A> where
T: Add<Output = T> + Copy,
A: Add<Output = A> + Copy,
impl<T, A> AddAssign<GrayAlpha<T, A>> for GrayAlpha<T, A> where
T: Add<Output = T> + Copy,
A: Add<Output = A> + Copy,
px + px
sourcefn add_assign(&mut self, other: GrayAlpha<T, A>)
fn add_assign(&mut self, other: GrayAlpha<T, A>)
Performs the +=
operation. Read more
sourceimpl<T> AddAssign<T> for GrayAlpha<T> where
T: Copy + Add<Output = T>,
impl<T> AddAssign<T> for GrayAlpha<T> where
T: Copy + Add<Output = T>,
px + 1
sourcefn add_assign(&mut self, r: T)
fn add_assign(&mut self, r: T)
Performs the +=
operation. Read more
sourceimpl<T> AsPixels<GrayAlpha<T, T>> for [T]
impl<T> AsPixels<GrayAlpha<T, T>> for [T]
sourceimpl<ComponentType: Clone, AlphaComponentType: Clone> Clone for GrayAlpha<ComponentType, AlphaComponentType>
impl<ComponentType: Clone, AlphaComponentType: Clone> Clone for GrayAlpha<ComponentType, AlphaComponentType>
sourceimpl<T: Copy, B> ComponentMap<GrayAlpha<B, B>, T, B> for GrayAlpha<T>
impl<T: Copy, B> ComponentMap<GrayAlpha<B, B>, T, B> for GrayAlpha<T>
sourceimpl<T> ComponentSlice<T> for GrayAlpha<T>
impl<T> ComponentSlice<T> for GrayAlpha<T>
sourceimpl<ComponentType: Debug, AlphaComponentType: Debug> Debug for GrayAlpha<ComponentType, AlphaComponentType>
impl<ComponentType: Debug, AlphaComponentType: Debug> Debug for GrayAlpha<ComponentType, AlphaComponentType>
sourceimpl<ComponentType: Default, AlphaComponentType: Default> Default for GrayAlpha<ComponentType, AlphaComponentType>
impl<ComponentType: Default, AlphaComponentType: Default> Default for GrayAlpha<ComponentType, AlphaComponentType>
sourceimpl<T> DivAssign<T> for GrayAlpha<T> where
T: Copy + Div<Output = T>,
impl<T> DivAssign<T> for GrayAlpha<T> where
T: Copy + Div<Output = T>,
px * 1
sourcefn div_assign(&mut self, r: T)
fn div_assign(&mut self, r: T)
Performs the /=
operation. Read more
sourceimpl<ComponentType: Hash, AlphaComponentType: Hash> Hash for GrayAlpha<ComponentType, AlphaComponentType>
impl<ComponentType: Hash, AlphaComponentType: Hash> Hash for GrayAlpha<ComponentType, AlphaComponentType>
sourceimpl<T> MulAssign<T> for GrayAlpha<T> where
T: Copy + Mul<Output = T>,
impl<T> MulAssign<T> for GrayAlpha<T> where
T: Copy + Mul<Output = T>,
px * 1
sourcefn mul_assign(&mut self, r: T)
fn mul_assign(&mut self, r: T)
Performs the *=
operation. Read more
sourceimpl<ComponentType: Ord, AlphaComponentType: Ord> Ord for GrayAlpha<ComponentType, AlphaComponentType>
impl<ComponentType: Ord, AlphaComponentType: Ord> Ord for GrayAlpha<ComponentType, AlphaComponentType>
sourceimpl<ComponentType: PartialEq, AlphaComponentType: PartialEq> PartialEq<GrayAlpha<ComponentType, AlphaComponentType>> for GrayAlpha<ComponentType, AlphaComponentType>
impl<ComponentType: PartialEq, AlphaComponentType: PartialEq> PartialEq<GrayAlpha<ComponentType, AlphaComponentType>> for GrayAlpha<ComponentType, AlphaComponentType>
sourceimpl<ComponentType: PartialOrd, AlphaComponentType: PartialOrd> PartialOrd<GrayAlpha<ComponentType, AlphaComponentType>> for GrayAlpha<ComponentType, AlphaComponentType>
impl<ComponentType: PartialOrd, AlphaComponentType: PartialOrd> PartialOrd<GrayAlpha<ComponentType, AlphaComponentType>> for GrayAlpha<ComponentType, AlphaComponentType>
sourcefn partial_cmp(
&self,
other: &GrayAlpha<ComponentType, AlphaComponentType>
) -> Option<Ordering>
fn partial_cmp(
&self,
other: &GrayAlpha<ComponentType, AlphaComponentType>
) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<T, A> SubAssign<GrayAlpha<T, A>> for GrayAlpha<T, A> where
T: Sub<Output = T> + Copy,
A: Sub<Output = A> + Copy,
impl<T, A> SubAssign<GrayAlpha<T, A>> for GrayAlpha<T, A> where
T: Sub<Output = T> + Copy,
A: Sub<Output = A> + Copy,
px - px
sourcefn sub_assign(&mut self, other: GrayAlpha<T, A>)
fn sub_assign(&mut self, other: GrayAlpha<T, A>)
Performs the -=
operation. Read more
sourceimpl<T> SubAssign<T> for GrayAlpha<T> where
T: Copy + Sub<Output = T>,
impl<T> SubAssign<T> for GrayAlpha<T> where
T: Copy + Sub<Output = T>,
px - 1
sourcefn sub_assign(&mut self, r: T)
fn sub_assign(&mut self, r: T)
Performs the -=
operation. Read more
sourceimpl<T, A> Sum<GrayAlpha<T, A>> for GrayAlpha<T, A> where
T: Default + Add<Output = T>,
A: Default + Add<Output = A>,
impl<T, A> Sum<GrayAlpha<T, A>> for GrayAlpha<T, A> where
T: Default + Add<Output = T>,
A: Default + Add<Output = A>,
impl<ComponentType: Copy, AlphaComponentType: Copy> Copy for GrayAlpha<ComponentType, AlphaComponentType>
impl<ComponentType: Eq, AlphaComponentType: Eq> Eq for GrayAlpha<ComponentType, AlphaComponentType>
impl<ComponentType, AlphaComponentType> StructuralEq for GrayAlpha<ComponentType, AlphaComponentType>
impl<ComponentType, AlphaComponentType> StructuralPartialEq for GrayAlpha<ComponentType, AlphaComponentType>
Auto Trait Implementations
impl<ComponentType, AlphaComponentType> RefUnwindSafe for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: RefUnwindSafe,
ComponentType: RefUnwindSafe,
impl<ComponentType, AlphaComponentType> Send for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: Send,
ComponentType: Send,
impl<ComponentType, AlphaComponentType> Sync for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: Sync,
ComponentType: Sync,
impl<ComponentType, AlphaComponentType> Unpin for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: Unpin,
ComponentType: Unpin,
impl<ComponentType, AlphaComponentType> UnwindSafe for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: UnwindSafe,
ComponentType: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more