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]
fn clone(&self) -> Rgba
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for Rgba
[src]
impl Debug for Rgba
[src]
impl Eq for Rgba
[src]
impl PartialEq for Rgba
[src]
fn eq(&self, __arg_0: &Rgba) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Rgba) -> bool
This method tests for !=
.
impl Hash for Rgba
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl ByteChannels for Rgba
[src]
type Channels = [u8; 4]
The type that represents the collection of channels. Read more
fn width() -> usize
The number of channels in each pixel. Read more