Struct framing::Rgba
[−]
[src]
pub struct Rgba<T = u8>(pub T, pub T, pub T, pub T);
A pixel that is four bytes long and is made of a red, green, blue and alpha channel, in that order.
Trait Implementations
impl<T: Clone> Clone for Rgba<T>
[src]
fn clone(&self) -> Rgba<T>
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<T: Copy> Copy for Rgba<T>
[src]
impl<T: Debug> Debug for Rgba<T>
[src]
impl<T: Eq> Eq for Rgba<T>
[src]
impl<T: PartialEq> PartialEq for Rgba<T>
[src]
fn eq(&self, __arg_0: &Rgba<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Rgba<T>) -> bool
This method tests for !=
.
impl<T: Hash> Hash for Rgba<T>
[src]
fn hash<__HT: Hasher>(&self, __arg_0: &mut __HT)
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 AsBytes for Rgba
[src]
type Bytes = [u8; 4]
The type that represents the collection of bytes. Read more
fn width() -> usize
The number of channels in each pixel. Read more