Struct bmp_encoder::Pixel
[−]
[src]
pub struct Pixel { pub r: u8, pub g: u8, pub b: u8, }
The pixel data used in the Image
.
It has three values for the red
, blue
and green
color channels, respectively.
Fields
r: u8
g: u8
b: u8
Trait Implementations
impl PartialEq for Pixel
[src]
fn eq(&self, __arg_0: &Pixel) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Pixel) -> bool
This method tests for !=
.
impl Eq for Pixel
[src]
impl Debug for Pixel
[src]
impl Copy for Pixel
[src]
impl Clone for Pixel
[src]
fn clone(&self) -> Pixel
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