Struct lodepng::GreyAlpha [−][src]
#[repr(C)]pub struct GreyAlpha<ComponentType, AlphaComponentType = ComponentType>(pub ComponentType, pub AlphaComponentType);
Grayscale with alpha. Use .0
/.1
to access.
Trait Implementations
impl<ComponentType, AlphaComponentType> Copy for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: Copy,
ComponentType: Copy,
[src]
impl<ComponentType, AlphaComponentType> Copy for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: Copy,
ComponentType: Copy,
impl<ComponentType, AlphaComponentType> Ord for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: Ord,
ComponentType: Ord,
[src]
impl<ComponentType, AlphaComponentType> Ord for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: Ord,
ComponentType: Ord,
fn cmp(&self, other: &GrayAlpha<ComponentType, AlphaComponentType>) -> Ordering
[src]
fn cmp(&self, other: &GrayAlpha<ComponentType, AlphaComponentType>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl<T> AsMut<T> for GrayAlpha<T, T>
[src]
impl<T> AsMut<T> for GrayAlpha<T, T>
impl<ComponentType, AlphaComponentType> Debug for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: Debug,
ComponentType: Debug,
[src]
impl<ComponentType, AlphaComponentType> Debug for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: Debug,
ComponentType: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<ComponentType, AlphaComponentType> Default for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: Default,
ComponentType: Default,
[src]
impl<ComponentType, AlphaComponentType> Default for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: Default,
ComponentType: Default,
fn default() -> GrayAlpha<ComponentType, AlphaComponentType>
[src]
fn default() -> GrayAlpha<ComponentType, AlphaComponentType>
Returns the "default value" for a type. Read more
impl<ComponentType, AlphaComponentType> Clone for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: Clone,
ComponentType: Clone,
[src]
impl<ComponentType, AlphaComponentType> Clone for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: Clone,
ComponentType: Clone,
fn clone(&self) -> GrayAlpha<ComponentType, AlphaComponentType>
[src]
fn clone(&self) -> GrayAlpha<ComponentType, AlphaComponentType>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<ComponentType, AlphaComponentType> Hash for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: Hash,
ComponentType: Hash,
[src]
impl<ComponentType, AlphaComponentType> Hash for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: Hash,
ComponentType: Hash,
fn hash<__HComponentTypeAlphaComponentType>(
&self,
state: &mut __HComponentTypeAlphaComponentType
) where
__HComponentTypeAlphaComponentType: Hasher,
[src]
fn hash<__HComponentTypeAlphaComponentType>(
&self,
state: &mut __HComponentTypeAlphaComponentType
) where
__HComponentTypeAlphaComponentType: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<ComponentType, AlphaComponentType> PartialOrd<GrayAlpha<ComponentType, AlphaComponentType>> for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: PartialOrd<AlphaComponentType>,
ComponentType: PartialOrd<ComponentType>,
[src]
impl<ComponentType, AlphaComponentType> PartialOrd<GrayAlpha<ComponentType, AlphaComponentType>> for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: PartialOrd<AlphaComponentType>,
ComponentType: PartialOrd<ComponentType>,
fn partial_cmp(
&self,
other: &GrayAlpha<ComponentType, AlphaComponentType>
) -> Option<Ordering>
[src]
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
fn lt(&self, other: &GrayAlpha<ComponentType, AlphaComponentType>) -> bool
[src]
fn lt(&self, other: &GrayAlpha<ComponentType, AlphaComponentType>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &GrayAlpha<ComponentType, AlphaComponentType>) -> bool
[src]
fn le(&self, other: &GrayAlpha<ComponentType, AlphaComponentType>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &GrayAlpha<ComponentType, AlphaComponentType>) -> bool
[src]
fn gt(&self, other: &GrayAlpha<ComponentType, AlphaComponentType>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &GrayAlpha<ComponentType, AlphaComponentType>) -> bool
[src]
fn ge(&self, other: &GrayAlpha<ComponentType, AlphaComponentType>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<T, A> From<GrayAlpha<T, A>> for RGBA<T, A> where
T: Clone,
[src]
impl<T, A> From<GrayAlpha<T, A>> for RGBA<T, A> where
T: Clone,
impl<ComponentType, AlphaComponentType> PartialEq<GrayAlpha<ComponentType, AlphaComponentType>> for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: PartialEq<AlphaComponentType>,
ComponentType: PartialEq<ComponentType>,
[src]
impl<ComponentType, AlphaComponentType> PartialEq<GrayAlpha<ComponentType, AlphaComponentType>> for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: PartialEq<AlphaComponentType>,
ComponentType: PartialEq<ComponentType>,
fn eq(&self, other: &GrayAlpha<ComponentType, AlphaComponentType>) -> bool
[src]
fn eq(&self, other: &GrayAlpha<ComponentType, AlphaComponentType>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &GrayAlpha<ComponentType, AlphaComponentType>) -> bool
[src]
fn ne(&self, other: &GrayAlpha<ComponentType, AlphaComponentType>) -> bool
This method tests for !=
.
impl<ComponentType, AlphaComponentType> Eq for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: Eq,
ComponentType: Eq,
[src]
impl<ComponentType, AlphaComponentType> Eq for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: Eq,
ComponentType: Eq,
impl<T> AsRef<T> for GrayAlpha<T, T>
[src]
impl<T> AsRef<T> for GrayAlpha<T, T>