Struct framing::Grayscale [] [src]

pub struct Grayscale<T = u8>(pub T);

A pixel that is one byte long and has just an intensity channel.

Trait Implementations

impl<T: Clone> Clone for Grayscale<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy> Copy for Grayscale<T>
[src]

impl<T: Debug> Debug for Grayscale<T>
[src]

Formats the value using the given formatter.

impl<T: Eq> Eq for Grayscale<T>
[src]

impl<T: PartialEq> PartialEq for Grayscale<T>
[src]

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

This method tests for !=.

impl<T: Hash> Hash for Grayscale<T>
[src]

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

Feeds a slice of this type into the given [Hasher]. Read more

impl AsBytes for Grayscale
[src]

The type that represents the collection of bytes. Read more

The number of channels in each pixel. Read more

impl From<[u8; 1]> for Grayscale
[src]

Performs the conversion.

impl From<Rgba> for Grayscale
[src]

Performs the conversion.