Struct framing::Bgra
[−]
[src]
pub struct Bgra<T = u8>(pub T, pub T, pub T, pub T);
A pixel that is four bytes long and is made of a blue, green, red and alpha channel, in that order.
Trait Implementations
impl<T: Clone> Clone for Bgra<T>
[src]
fn clone(&self) -> Bgra<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 Bgra<T>
[src]
impl<T: Debug> Debug for Bgra<T>
[src]
impl<T: Eq> Eq for Bgra<T>
[src]
impl<T: PartialEq> PartialEq for Bgra<T>
[src]
fn eq(&self, __arg_0: &Bgra<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Bgra<T>) -> bool
This method tests for !=
.
impl<T: Hash> Hash for Bgra<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<T> From<Rgba<T>> for Bgra<T>
[src]
impl AsBytes for Bgra
[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