Struct lodepng::Grey [−][src]
#[repr(C)]pub struct Grey<ComponentType>(pub ComponentType);
Grayscale. Use .0
or *
(deref) to access the value.
Trait Implementations
impl<ComponentType> Copy for Gray<ComponentType> where
ComponentType: Copy,
[src]
impl<ComponentType> Copy for Gray<ComponentType> where
ComponentType: Copy,
impl<ComponentType> Ord for Gray<ComponentType> where
ComponentType: Ord,
[src]
impl<ComponentType> Ord for Gray<ComponentType> where
ComponentType: Ord,
fn cmp(&self, other: &Gray<ComponentType>) -> Ordering
[src]
fn cmp(&self, other: &Gray<ComponentType>) -> 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 Gray<T>
[src]
impl<T> AsMut<T> for Gray<T>
impl<T> Deref for Gray<T>
[src]
impl<T> Deref for Gray<T>
type Target = T
The resulting type after dereferencing.
ⓘImportant traits for &'a mut Rfn deref(&self) -> &T
[src]
fn deref(&self) -> &T
Dereferences the value.
impl<ComponentType> Debug for Gray<ComponentType> where
ComponentType: Debug,
[src]
impl<ComponentType> Debug for Gray<ComponentType> where
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> Default for Gray<ComponentType> where
ComponentType: Default,
[src]
impl<ComponentType> Default for Gray<ComponentType> where
ComponentType: Default,
impl<ComponentType> Clone for Gray<ComponentType> where
ComponentType: Clone,
[src]
impl<ComponentType> Clone for Gray<ComponentType> where
ComponentType: Clone,
fn clone(&self) -> Gray<ComponentType>
[src]
fn clone(&self) -> Gray<ComponentType>
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> Hash for Gray<ComponentType> where
ComponentType: Hash,
[src]
impl<ComponentType> Hash for Gray<ComponentType> where
ComponentType: Hash,
fn hash<__HComponentType>(&self, state: &mut __HComponentType) where
__HComponentType: Hasher,
[src]
fn hash<__HComponentType>(&self, state: &mut __HComponentType) where
__HComponentType: 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> PartialOrd<Gray<ComponentType>> for Gray<ComponentType> where
ComponentType: PartialOrd<ComponentType>,
[src]
impl<ComponentType> PartialOrd<Gray<ComponentType>> for Gray<ComponentType> where
ComponentType: PartialOrd<ComponentType>,
fn partial_cmp(&self, other: &Gray<ComponentType>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Gray<ComponentType>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Gray<ComponentType>) -> bool
[src]
fn lt(&self, other: &Gray<ComponentType>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Gray<ComponentType>) -> bool
[src]
fn le(&self, other: &Gray<ComponentType>) -> 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: &Gray<ComponentType>) -> bool
[src]
fn gt(&self, other: &Gray<ComponentType>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Gray<ComponentType>) -> bool
[src]
fn ge(&self, other: &Gray<ComponentType>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<T> From<Gray<T>> for RGB<T> where
T: Clone,
[src]
impl<T> From<Gray<T>> for RGB<T> where
T: Clone,
impl<ComponentType> PartialEq<Gray<ComponentType>> for Gray<ComponentType> where
ComponentType: PartialEq<ComponentType>,
[src]
impl<ComponentType> PartialEq<Gray<ComponentType>> for Gray<ComponentType> where
ComponentType: PartialEq<ComponentType>,
fn eq(&self, other: &Gray<ComponentType>) -> bool
[src]
fn eq(&self, other: &Gray<ComponentType>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Gray<ComponentType>) -> bool
[src]
fn ne(&self, other: &Gray<ComponentType>) -> bool
This method tests for !=
.
impl<ComponentType> Eq for Gray<ComponentType> where
ComponentType: Eq,
[src]
impl<ComponentType> Eq for Gray<ComponentType> where
ComponentType: Eq,
impl<T> AsRef<T> for Gray<T>
[src]
impl<T> AsRef<T> for Gray<T>