Enum png::BitDepth [] [src]

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

Bit depth of the png file

Variants

One
Two
Four
Eight
Sixteen

Methods

impl BitDepth

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

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

Derived Implementations

impl Eq for BitDepth

impl PartialEq for BitDepth

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

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

impl Copy for BitDepth

impl Clone for BitDepth

fn clone(&self) -> BitDepth

1.0.0fn clone_from(&mut self, source: &Self)

impl Debug for BitDepth

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