Struct framing::video::Rgba [] [src]

pub struct Rgba(pub u8, pub u8, pub u8, pub u8);

A pixel that is four bytes long and is made of a red, green, blue and alpha channel, in that order.

Trait Implementations

impl Clone for Rgba
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Rgba
[src]

impl Debug for Rgba
[src]

Formats the value using the given formatter.

impl Eq for Rgba
[src]

impl PartialEq for Rgba
[src]

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

This method tests for !=.

impl Hash for Rgba
[src]

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

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

impl ByteChannels for Rgba
[src]

The type that represents the collection of channels. Read more

The number of channels in each pixel. Read more

impl From<[u8; 4]> for Rgba
[src]

Performs the conversion.

impl From<Grayscale> for Rgba
[src]

Performs the conversion.

impl From<Yuv> for Rgba
[src]

Performs the conversion.