Enum png::BitDepth
[−]
[src]
#[repr(u8)]pub enum BitDepth { One, Two, Four, Eight, Sixteen, }
Bit depth of the png file
Variants
OneTwoFourEightSixteen
Methods
impl BitDepth[src]
pub fn from_u8(n: u8) -> Option<BitDepth>[src]
u8 -> Self. Temporary solution until Rust provides a canonical one.
Trait Implementations
impl<W: Write> Parameter<Encoder<W>> for BitDepth[src]
impl Debug for BitDepth[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for BitDepth[src]
fn clone(&self) -> BitDepth[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for BitDepth[src]
impl PartialEq for BitDepth[src]
fn eq(&self, __arg_0: &BitDepth) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.