Enum png::BitDepth [] [src]

pub enum BitDepth {
    One,
    Two,
    Four,
    Eight,
    Sixteen,
}

Bit depth of the png file

Variants

OneTwoFourEightSixteen

Methods

impl BitDepth
[src]

fn from_u8(n: u8) -> Option<BitDepth>

u8 -> Self. Temporary solution until Rust provides a canonical one.

Trait Implementations

impl<W: Write> Parameter<Encoder<W>> for BitDepth
[src]

fn set_param(self, this: &mut Encoder<W>)

impl Eq for BitDepth
[src]

impl PartialEq for BitDepth
[src]

fn eq(&self, __arg_0: &BitDepth) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Copy for BitDepth
[src]

impl Clone for BitDepth
[src]

fn clone(&self) -> BitDepth

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 Debug for BitDepth
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.