Enum luminance::pixel::Format [−][src]
pub enum Format { R(Size), RG(Size, Size), RGB(Size, Size, Size), RGBA(Size, Size, Size, Size), Depth(Size), }
Format of a pixel.
Whichever the constructor you choose, the carried Size
s represents how many bits are used to
represent each channel.
Variants
R(Size)
Holds a red-only channel.
RG(Size, Size)
Holds red and green channels.
RGB(Size, Size, Size)
Holds red, green and blue channels.
RGBA(Size, Size, Size, Size)
Holds red, green, blue and alpha channels.
Depth(Size)
Holds a depth channel.
Trait Implementations
impl Clone for Format
[src]
impl Clone for Format
fn clone(&self) -> Format
[src]
fn clone(&self) -> Format
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Format
[src]
impl Copy for Format
impl Debug for Format
[src]
impl Debug for Format
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Format
[src]
impl PartialEq for Format
fn eq(&self, other: &Format) -> bool
[src]
fn eq(&self, other: &Format) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Format) -> bool
[src]
fn ne(&self, other: &Format) -> bool
This method tests for !=
.
impl Eq for Format
[src]
impl Eq for Format