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> Ord for Gray<ComponentType> where
    ComponentType: Ord
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<T> AsMut<T> for Gray<T>
[src]

Important traits for &'a mut R

Performs the conversion.

impl<T> Deref for Gray<T>
[src]

The resulting type after dereferencing.

Important traits for &'a mut R

Dereferences the value.

impl<ComponentType> Debug for Gray<ComponentType> where
    ComponentType: Debug
[src]

Formats the value using the given formatter. Read more

impl<ComponentType> Default for Gray<ComponentType> where
    ComponentType: Default
[src]

Returns the "default value" for a type. Read more

impl<ComponentType> Clone for Gray<ComponentType> where
    ComponentType: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<ComponentType> Hash for Gray<ComponentType> where
    ComponentType: Hash
[src]

Feeds this value into the given [Hasher]. Read more

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]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

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]

Performs the conversion.

impl<ComponentType> PartialEq<Gray<ComponentType>> for Gray<ComponentType> where
    ComponentType: PartialEq<ComponentType>, 
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<ComponentType> Eq for Gray<ComponentType> where
    ComponentType: Eq
[src]

impl<T> AsRef<T> for Gray<T>
[src]

Important traits for &'a mut R

Performs the conversion.

Auto Trait Implementations

impl<ComponentType> Send for Gray<ComponentType> where
    ComponentType: Send

impl<ComponentType> Sync for Gray<ComponentType> where
    ComponentType: Sync