Struct rgb::alt::Gray [−][src]
#[repr(C)]pub struct Gray<ComponentType>(pub ComponentType);
Grayscale. Use .0
or *
(deref) to access the value.
Trait Implementations
impl<T: Clone> From<Gray<T>> for RGB<T>
[src]
impl<T: Clone> From<Gray<T>> for RGB<T>
impl<T> AsRef<T> for Gray<T>
[src]
impl<T> AsRef<T> for Gray<T>
impl<T> AsMut<T> for Gray<T>
[src]
impl<T> AsMut<T> for Gray<T>
impl<ComponentType: Copy> Copy for Gray<ComponentType>
[src]
impl<ComponentType: Copy> Copy for Gray<ComponentType>
impl<ComponentType: Clone> Clone for Gray<ComponentType>
[src]
impl<ComponentType: Clone> Clone for Gray<ComponentType>
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: Debug> Debug for Gray<ComponentType>
[src]
impl<ComponentType: Debug> Debug for Gray<ComponentType>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<ComponentType: Default> Default for Gray<ComponentType>
[src]
impl<ComponentType: Default> Default for Gray<ComponentType>
impl<ComponentType: Eq> Eq for Gray<ComponentType>
[src]
impl<ComponentType: Eq> Eq for Gray<ComponentType>
impl<ComponentType: PartialEq> PartialEq for Gray<ComponentType>
[src]
impl<ComponentType: PartialEq> PartialEq for Gray<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: Ord> Ord for Gray<ComponentType>
[src]
impl<ComponentType: Ord> Ord for Gray<ComponentType>
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<ComponentType: PartialOrd> PartialOrd for Gray<ComponentType>
[src]
impl<ComponentType: PartialOrd> PartialOrd for Gray<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<ComponentType: Hash> Hash for Gray<ComponentType>
[src]
impl<ComponentType: Hash> Hash for Gray<ComponentType>
fn hash<__HComponentType: Hasher>(&self, state: &mut __HComponentType)
[src]
fn hash<__HComponentType: Hasher>(&self, state: &mut __HComponentType)
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<T> Deref for Gray<T>
[src]
impl<T> Deref for Gray<T>