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> Ord for GrayAlpha<ComponentType, AlphaComponentType> where
    AlphaComponentType: Ord,
    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 GrayAlpha<T, T>
[src]

Important traits for &'a mut R

Performs the conversion.

impl<ComponentType, AlphaComponentType> Debug for GrayAlpha<ComponentType, AlphaComponentType> where
    AlphaComponentType: Debug,
    ComponentType: Debug
[src]

Formats the value using the given formatter. Read more

impl<ComponentType, AlphaComponentType> Default for GrayAlpha<ComponentType, AlphaComponentType> where
    AlphaComponentType: Default,
    ComponentType: Default
[src]

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

impl<ComponentType, AlphaComponentType> Clone for GrayAlpha<ComponentType, AlphaComponentType> where
    AlphaComponentType: Clone,
    ComponentType: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<ComponentType, AlphaComponentType> Hash for GrayAlpha<ComponentType, AlphaComponentType> where
    AlphaComponentType: Hash,
    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, AlphaComponentType> PartialOrd<GrayAlpha<ComponentType, AlphaComponentType>> for GrayAlpha<ComponentType, AlphaComponentType> where
    AlphaComponentType: PartialOrd<AlphaComponentType>,
    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, A> From<GrayAlpha<T, A>> for RGBA<T, A> where
    T: Clone
[src]

Performs the conversion.

impl<ComponentType, AlphaComponentType> PartialEq<GrayAlpha<ComponentType, AlphaComponentType>> for GrayAlpha<ComponentType, AlphaComponentType> where
    AlphaComponentType: PartialEq<AlphaComponentType>,
    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, AlphaComponentType> Eq for GrayAlpha<ComponentType, AlphaComponentType> where
    AlphaComponentType: Eq,
    ComponentType: Eq
[src]

impl<T> AsRef<T> for GrayAlpha<T, T>
[src]

Important traits for &'a mut R

Performs the conversion.

Auto Trait Implementations

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